/* =========================================================
   Đầu tư cùng Vũ — core styles (tokens, base, components)
   ========================================================= */

:root {
  /* Brand */
  --navy-950: #040d20;
  --navy-900: #06142e;
  --navy-800: #0a2352;
  --navy-700: #123a7a;
  --navy-600: #1b4f9e;
  --blue-500: #1e5bd8;
  --blue-50: #eaf1ff;
  --gold-400: #f6c64a;
  --gold-500: #e9ad22;
  --gold-50: #fff7e0;
  --green-500: #16a34a;
  --green-600: #11853c;
  --green-50: #e7f7ed;
  --red-500: #e0393e;
  --red-50: #fdecec;
  --violet-500: #7c3aed;
  --orange-500: #f08a1c;
  --pink-500: #db2777;

  /* Neutrals */
  --paper: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --line: #e2e8f1;
  --line-strong: #cdd6e3;
  --text: #0f1b33;
  --text-2: #3b4860;
  --muted: #64718a;

  /* Type */
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(1.9rem, 1.2rem + 2.4vw, 2.75rem);
  --fs-4xl: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem);

  /* Shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10, 35, 82, 0.06), 0 1px 1px rgba(10, 35, 82, 0.04);
  --shadow-md: 0 8px 24px -12px rgba(10, 35, 82, 0.25);
  --shadow-lg: 0 24px 48px -20px rgba(4, 13, 32, 0.45);

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --header-h: 72px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (max-width: 600px) {
  :root {
    --gutter: 16px;
    --header-h: 64px;
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  display: block;
  max-width: 100%;
}
/* Icon không bị co khi chữ bên cạnh xuống dòng */
[data-icon] {
  flex-shrink: 0;
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}
:focus-visible {
  outline: 3px solid var(--gold-400);
  outline-offset: 2px;
  border-radius: 6px;
}
[hidden] {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--gold-400);
  color: var(--navy-900);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section {
  padding-block: 56px;
}
.section--tight {
  padding-block: 32px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 24px;
}
.section-title {
  font-size: var(--fs-2xl);
  line-height: 1.25;
  font-weight: 800;
  color: var(--navy-800);
  letter-spacing: -0.01em;
}
.section-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--blue-500);
}
.link-more svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease);
}
.link-more:hover svg {
  transform: translateX(3px);
}
.num {
  font-variant-numeric: tabular-nums;
}
.up {
  color: var(--green-500);
}
.down {
  color: var(--red-500);
}
.flat {
  color: var(--gold-500);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--navy-800);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--btn-bd);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 700;
  font-size: var(--fs-sm);
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s, transform 0.18s var(--ease), box-shadow 0.18s;
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn--lg {
  min-height: 52px;
  padding: 14px 28px;
  font-size: var(--fs-md);
  border-radius: 10px;
}
.btn--sm {
  min-height: 36px;
  padding: 8px 14px;
  font-size: var(--fs-xs);
}
.btn--block {
  width: 100%;
}
.btn--gold {
  --btn-bg: var(--gold-400);
  --btn-fg: var(--navy-900);
  --btn-bd: var(--gold-400);
  box-shadow: 0 6px 18px -8px rgba(233, 173, 34, 0.8);
}
.btn--gold:hover {
  --btn-bg: #ffd463;
}
.btn--green {
  --btn-bg: var(--green-500);
  --btn-fg: #fff;
  --btn-bd: var(--green-500);
  box-shadow: 0 6px 18px -8px rgba(22, 163, 74, 0.8);
}
.btn--green:hover {
  --btn-bg: var(--green-600);
  --btn-bd: var(--green-600);
}
.btn--navy {
  --btn-bg: var(--navy-800);
  --btn-fg: #fff;
  --btn-bd: var(--navy-800);
}
.btn--navy:hover {
  --btn-bg: var(--navy-700);
}
.btn--ghost-light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, 0.35);
}
.btn--ghost-light:hover {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-bd: rgba(255, 255, 255, 0.6);
}
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--blue-500);
  --btn-bd: #b9cdf5;
}
.btn--outline:hover {
  --btn-bg: var(--blue-50);
}
.btn[aria-pressed="true"].btn--outline {
  --btn-bg: var(--blue-500);
  --btn-fg: #fff;
  --btn-bd: var(--blue-500);
}
.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: inherit;
  transition: background-color 0.18s;
}
.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.icon-btn svg {
  width: 22px;
  height: 22px;
}

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: var(--navy-700);
}
.badge--green { background: var(--green-500); }
.badge--violet { background: var(--violet-500); }
.badge--pink { background: var(--pink-500); }
.badge--orange { background: var(--orange-500); }
.badge--blue { background: var(--blue-500); }
.badge--soft {
  background: var(--blue-50);
  color: var(--blue-500);
}
.badge--gold {
  background: var(--gold-50);
  color: #9a6b00;
}
.ticker-tag {
  display: inline-block;
  padding: 1px 7px;
  margin-right: 4px;
  border-radius: 5px;
  background: var(--blue-50);
  color: var(--blue-500);
  font-weight: 800;
  font-size: 0.85em;
  vertical-align: 1px;
}

/* ---------- Tabs (pill style) ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap; /* thiếu chỗ thì xuống dòng, không giấu tab nào ngoài khung */
  gap: 6px;
  padding-bottom: 2px;
}
.tab {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: background-color 0.18s, color 0.18s, border-color 0.18s;
}
.tabs.tabs--line {
  row-gap: 0;
}
.tabs.is-instant .tab {
  transition: none;
}
.tab:hover {
  border-color: var(--line-strong);
  color: var(--navy-800);
}
.tab[aria-selected="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
/* underline variant */
.tabs--line {
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.tabs--line .tab {
  padding: 10px 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: inset 0 -2px 0 transparent;
}
.tabs--line .tab[aria-selected="true"] {
  background: none;
  color: var(--navy-800);
  box-shadow: inset 0 -2px 0 var(--blue-500);
}

/* ---------- Panels ---------- */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.panel-pad {
  padding: 24px;
}
@media (max-width: 600px) {
  .panel-pad {
    padding: 18px;
  }
}

/* ---------- Form controls ---------- */
.field {
  display: grid;
  gap: 6px;
}
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--text-2);
}
.input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  font-size: var(--fs-md);
  transition: border-color 0.18s, box-shadow 0.18s;
}
.input::placeholder {
  color: #93a0b5;
}
.input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(30, 91, 216, 0.15);
}
.input[aria-invalid="true"] {
  border-color: var(--red-500);
}
.field-error {
  font-size: var(--fs-xs);
  color: var(--red-500);
  min-height: 1em;
}
.search-box {
  position: relative;
}
.search-box svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.search-box .input {
  padding-left: 42px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: linear-gradient(180deg, var(--navy-900), #081a3d);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand img {
  width: 42px;
  height: 42px;
}
.brand-name {
  display: block;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  line-height: 1.15;
}
.brand-tag {
  display: block;
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.3;
}
.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}
.main-nav ul {
  display: flex;
  gap: 4px;
}
.main-nav a {
  position: relative;
  display: block;
  padding: 10px 14px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  transition: color 0.18s, background-color 0.18s;
}
.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.main-nav a[aria-current="page"] {
  color: var(--gold-400);
}
.main-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold-400);
}
.main-nav .nav-premium {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.main-nav .nav-premium svg {
  width: 15px;
  height: 15px;
  color: var(--gold-400);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-actions .btn {
  min-height: 40px;
}
.user-chip {
  position: relative;
}
.user-chip > button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--r-pill);
  color: #fff;
  font-weight: 600;
  font-size: var(--fs-sm);
  transition: background-color 0.18s;
}
.user-chip > button:hover {
  background: rgba(255, 255, 255, 0.08);
}
.user-chip svg {
  width: 16px;
  height: 16px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-400), var(--orange-500));
  color: var(--navy-900);
  font-weight: 800;
  font-size: var(--fs-sm);
  flex-shrink: 0;
}
.dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 8px;
  background: var(--surface);
  color: var(--text);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.dropdown a,
.dropdown button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: var(--fs-sm);
  font-weight: 500;
  text-align: left;
}
.dropdown a:hover,
.dropdown button:hover {
  background: var(--surface-2);
}
.dropdown svg {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
.dropdown hr {
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}
.nav-toggle {
  display: none;
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  justify-content: flex-end;
  background: rgba(4, 13, 32, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.drawer.is-open {
  opacity: 1;
  visibility: visible;
}
.drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(340px, 88vw);
  height: 100%;
  padding: 20px;
  background: var(--navy-900);
  color: #fff;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer-panel {
  transform: translateX(0);
}
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.drawer nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
.drawer nav a[aria-current="page"] {
  color: var(--gold-400);
}
.drawer-actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

@media (max-width: 1080px) {
  .main-nav a {
    padding: 10px 10px;
  }
  .main-nav a[aria-current="page"]::after {
    left: 10px;
    right: 10px;
  }
  .brand-tag {
    display: none;
  }
}
@media (max-width: 920px) {
  .main-nav,
  .header-actions .hide-mobile {
    display: none;
  }
  .site-header .container {
    justify-content: space-between;
    gap: 12px;
  }
  .site-header .brand,
  .site-header .brand > span {
    flex-shrink: 1;
    min-width: 0;
  }
  .site-header .brand-name {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
  .nav-toggle {
    display: inline-grid;
  }
}
@media (max-width: 540px) {
  /* Nút gọn lại để tên thương hiệu không bị cắt */
  .header-actions .btn--green {
    min-height: 36px;
    padding-inline: 12px;
    font-size: var(--fs-sm);
  }
  .site-header .brand img {
    width: 38px;
    height: 38px;
  }
}
@media (max-width: 420px) {
  .header-actions .btn--green {
    display: none;
  }
}

/* ---------- Market strip ---------- */
.market-strip {
  background: var(--navy-950);
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-xs);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.market-strip .container {
  display: flex;
  flex-wrap: wrap; /* thiếu chỗ thì xuống dòng, không giấu chỉ số nào */
  align-items: center;
  gap: 4px 28px;
  min-height: 38px;
  padding-block: 6px;
}
.market-strip .mk {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  white-space: nowrap;
}
.market-strip .mk b {
  color: #fff;
  font-weight: 700;
}
.market-strip .demo-note {
  margin-left: auto;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}
.market-strip .pct::before {
  content: "(";
}
.market-strip .pct::after {
  content: ")";
}
/* Mobile: 4 chỉ số xếp lưới, hiện đủ trong khung, không cuộn ngang */
@media (max-width: 760px) {
  .market-strip .container {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-block: 7px;
  }
  .market-strip .mk {
    display: grid;
    gap: 1px;
    white-space: normal;
    line-height: 1.3;
  }
  .market-strip .abs,
  .market-strip .demo-note {
    display: none;
  }
  .market-strip .pct::before,
  .market-strip .pct::after {
    content: none;
  }
}

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 140% at 85% 20%, #1d58b8 0%, var(--navy-800) 45%, var(--navy-900) 100%);
}
.page-banner .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 210px;
  padding-block: 40px;
}
.page-banner h1 {
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.page-banner p {
  margin-top: 10px;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: var(--fs-lg);
}
.page-banner .banner-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-banner .banner-art svg {
  width: 100%;
  height: 100%;
}

/* ---------- Cards ---------- */
.course-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease);
}
.course-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.course-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--navy-800);
}
.course-thumb svg {
  width: 100%;
  height: 100%;
}
.course-thumb .badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
}
.course-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
  padding: 16px;
}
.course-body h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy-800);
}
.course-body h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.course-card {
  position: relative;
}
.course-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.course-meta span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.course-meta svg {
  width: 14px;
  height: 14px;
}
.course-meta .star {
  color: var(--gold-500);
}
.grid-courses {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 1024px) {
  .grid-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .grid-courses {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  /* Danh sách dọc: thẻ nằm ngang, ảnh nhỏ bên trái để xem được nhiều khóa hơn */
  .grid-courses .course-card {
    flex-direction: row;
  }
  .grid-courses .course-thumb {
    flex: 0 0 116px;
    aspect-ratio: auto;
    min-height: 100px;
  }
  .grid-courses .course-thumb .badge {
    left: 6px;
    bottom: 6px;
    max-width: calc(100% - 12px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .grid-courses .course-body {
    padding: 12px 14px;
    gap: 8px;
  }
  .grid-courses .course-body h3 {
    font-size: var(--fs-sm);
  }
}

/* News row */
.news-item {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 20px;
  padding: 16px;
  border-radius: var(--r-md);
  transition: background-color 0.18s;
}
.news-item:hover {
  background: var(--surface-2);
}
.news-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: var(--navy-800);
}
.news-thumb svg {
  width: 100%;
  height: 100%;
}
.news-item h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy-800);
}
.news-item h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.news-item:hover h3 {
  color: var(--blue-500);
}
.news-date {
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.news-excerpt {
  margin-top: 8px;
  font-size: var(--fs-sm);
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (max-width: 600px) {
  .news-item {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
  }
  .news-excerpt {
    display: none;
  }
  .news-item h3 {
    font-size: var(--fs-sm);
  }
}

/* ---------- Promo banner ---------- */
.promo {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 24px 32px;
  border-radius: var(--r-lg);
  color: #fff;
  background: linear-gradient(110deg, var(--navy-900) 0%, var(--navy-800) 55%, #163f86 100%);
  box-shadow: var(--shadow-lg);
}
.promo::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 198, 74, 0.22), transparent 70%);
  pointer-events: none;
}
.promo-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(246, 198, 74, 0.12);
  color: var(--gold-400);
}
.promo-icon svg {
  width: 36px;
  height: 36px;
}
.promo h2,
.promo h3 {
  font-size: var(--fs-lg);
  font-weight: 800;
}
.promo p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--fs-sm);
}
.promo p strong {
  color: var(--gold-400);
}
.promo .btn {
  position: relative;
  z-index: 1;
}
@media (max-width: 760px) {
  .promo {
    grid-template-columns: auto 1fr;
    padding: 20px;
  }
  .promo .btn {
    grid-column: 1 / -1;
  }
  .promo-icon {
    width: 52px;
    height: 52px;
  }
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 64px;
  color: rgba(255, 255, 255, 0.75);
  background: var(--navy-900);
  font-size: var(--fs-sm);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-block: 48px 32px;
}
.footer-top h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: 700;
}
.footer-top li + li {
  margin-top: 8px;
}
.footer-top a:hover {
  color: var(--gold-400);
}
.footer-about p {
  margin-top: 14px;
  max-width: 40ch;
}
.socials {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition: background-color 0.18s, color 0.18s;
}
.socials a:hover {
  background: var(--gold-400);
  color: var(--navy-900);
}
.socials svg {
  width: 18px;
  height: 18px;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer-bottom p {
  max-width: 80ch;
}
@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 13, 32, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
}
.modal.is-open {
  opacity: 1;
  visibility: visible;
}
.modal-card {
  position: relative;
  width: min(420px, 100%);
  padding: 28px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s var(--ease);
}
.modal.is-open .modal-card {
  transform: none;
}
.modal-card h2 {
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--navy-800);
}
.modal-card > p {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--fs-sm);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--muted);
}
.modal-close:hover {
  background: var(--surface-2);
}
.modal form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.modal .hint {
  font-size: var(--fs-xs);
  color: var(--muted);
  text-align: center;
}

/* ---------- Toast ---------- */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 95;
  display: grid;
  gap: 8px;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
}
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-md);
  background: var(--navy-800);
  color: #fff;
  font-size: var(--fs-sm);
  box-shadow: 0 12px 32px rgba(6, 20, 46, 0.45);
  animation: toast-in 0.3s var(--ease);
}
.toast svg {
  width: 18px;
  height: 18px;
  color: var(--green-500);
  flex-shrink: 0;
}
.toast--lock svg {
  color: var(--gold-400);
}
.toast--info svg {
  color: #7fb0ff;
}
@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Disclaimer ---------- */
.data-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.data-note svg {
  width: 14px;
  height: 14px;
}

/* Section cuối không cộng dồn khoảng trống với lề trên của footer */
main > .section:last-child {
  padding-bottom: 0;
}
@media (max-width: 600px) {
  .section:not(.section--tight) {
    padding-block: 40px;
  }
  .site-footer {
    margin-top: 48px;
  }
}

/* ---------- Ảnh đại diện thương hiệu ---------- */
.brand-photo {
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px var(--gold-400);
}

/* Nút Zalo */
.btn--blue {
  --btn-bg: #0068ff;
  --btn-fg: #fff;
  --btn-bd: #0068ff;
}
.btn--blue:hover {
  --btn-bg: #0057d6;
  --btn-bd: #0057d6;
}

/* ---------- Giá khóa học ---------- */
.price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--navy-800);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: 800;
  white-space: nowrap;
}
.price svg {
  width: 14px;
  height: 14px;
}
.price--free {
  background: var(--green-50);
  color: var(--green-600);
}
.price--owned {
  background: var(--blue-50);
  color: var(--blue-500);
}
.course-meta .price {
  margin-left: auto;
}
.course-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.course-kind {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(6, 20, 46, 0.75);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
}
.course-kind svg {
  width: 13px;
  height: 13px;
}

/* ---------- Nhãn quyền xem & thẻ chủ đề ---------- */
.access-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--gold-50);
  color: #8a5f00;
  font-size: 0.6875rem;
  font-weight: 700;
  vertical-align: 1px;
}
.access-badge svg {
  width: 12px;
  height: 12px;
}
.access-badge--user {
  background: var(--blue-50);
  color: var(--blue-500);
}
.access-badge--vip {
  background: var(--navy-800);
  color: var(--gold-400);
}
.news-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.news-tags .ticker-tag {
  margin: 0;
}

/* ---------- Video YouTube ---------- */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy-900);
}
.video button,
.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.88;
}
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
}
.video-play svg {
  width: 72px;
  height: 72px;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.5));
  transition: transform 0.18s var(--ease);
}
.video button:hover .video-play svg {
  transform: scale(1.08);
}
.video--empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.75);
  background: radial-gradient(80% 90% at 80% 10%, rgba(30, 91, 216, 0.45), transparent 60%), var(--navy-800);
}
.video--empty > svg {
  width: 56px;
  height: 56px;
  color: var(--gold-400);
}
.video--empty b {
  display: block;
  color: #fff;
}
.video--empty span {
  font-size: var(--fs-sm);
}

/* ---------- Dòng thông tin có nút sao chép ---------- */
.copy-row {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
}
.copy-row > span {
  color: var(--muted);
}
.copy-row b {
  color: var(--navy-800);
  overflow-wrap: anywhere;
}

/* ---------- Đăng nhập demo theo vai trò ---------- */
.demo-roles {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
}
.demo-roles p {
  margin-bottom: 8px;
  font-size: var(--fs-xs);
  color: var(--muted);
}
.demo-roles div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.page-banner--slim .container {
  min-height: 0;
  padding-block: 32px;
}
@media (max-width: 520px) {
  .copy-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .copy-row > span {
    grid-column: 1 / -1;
    margin-bottom: -6px;
    font-size: var(--fs-xs);
  }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
