/* =====================================================================
   VINAMEDICAL — Components
   Thư viện thành phần giao diện dùng chung cho mọi trang.
   Phụ thuộc: tokens.css, base.css
   ===================================================================== */

/* =====================================================================
   1. NÚT BẤM
   ===================================================================== */
.vm-btn {
  --_bg: var(--vm-brand);
  --_fg: var(--vm-text-on-brand);
  --_bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--vm-space-2);
  padding: 0.75rem 1.5rem;
  min-height: 46px;
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-weight-semi);
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  border-radius: var(--vm-radius-control);
  border: 1.5px solid var(--_bd);
  background: var(--_bg);
  color: var(--_fg);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition:
    transform var(--vm-dur-fast) var(--vm-ease-out),
    box-shadow var(--vm-dur-base) var(--vm-ease-out),
    background-color var(--vm-dur-base) var(--vm-ease-out),
    border-color var(--vm-dur-base) var(--vm-ease-out),
    color var(--vm-dur-base) var(--vm-ease-out);
}
.vm-btn:hover { color: var(--_fg); transform: translateY(-2px); }
.vm-btn:active { transform: translateY(0); }
.vm-btn:disabled, .vm-btn[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none;
}
.vm-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* Ánh sáng quét ngang khi hover */
.vm-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--vm-grad-sheen);
  transform: translateX(-120%);
  opacity: 0.35;
  transition: transform var(--vm-dur-slower) var(--vm-ease-out);
}
.vm-btn:hover::after { transform: translateX(120%); }

.vm-btn--primary { --_bg: var(--vm-brand); --_fg: var(--vm-text-on-brand); box-shadow: var(--vm-shadow-brand); }
.vm-btn--primary:hover { --_bg: var(--vm-brand-hover); }

.vm-btn--cta { --_bg: var(--vm-cta); --_fg: #fff; box-shadow: var(--vm-shadow-cta); }
.vm-btn--cta:hover { --_bg: var(--vm-cta-hover); }

.vm-btn--gradient {
  --_fg: #fff;
  background: var(--vm-grad-brand);
  box-shadow: var(--vm-shadow-brand);
}
.vm-btn--gradient-cta {
  --_fg: #fff;
  background: var(--vm-grad-cta);
  box-shadow: var(--vm-shadow-cta);
}

.vm-btn--outline {
  --_bg: transparent;
  --_fg: var(--vm-brand);
  --_bd: color-mix(in srgb, var(--vm-brand) 45%, transparent);
}
.vm-btn--outline:hover { --_bg: var(--vm-brand); --_fg: var(--vm-text-on-brand); --_bd: var(--vm-brand); }

.vm-btn--ghost { --_bg: transparent; --_fg: var(--vm-text); }
.vm-btn--ghost:hover { --_bg: var(--vm-surface-hover); --_fg: var(--vm-brand); }

.vm-btn--soft { --_bg: var(--vm-brand-soft); --_fg: var(--vm-brand); }
.vm-btn--soft:hover { --_bg: color-mix(in srgb, var(--vm-brand) 18%, transparent); }

.vm-btn--light { --_bg: #fff; --_fg: var(--vm-primary-800); box-shadow: var(--vm-shadow-md); }
.vm-btn--light:hover { --_bg: var(--vm-primary-50); }

.vm-btn--on-dark {
  --_bg: transparent;
  --_fg: #fff;
  --_bd: rgba(255, 255, 255, 0.45);
}
.vm-btn--on-dark:hover { --_bg: rgba(255, 255, 255, 0.14); --_bd: rgba(255, 255, 255, 0.8); }

.vm-btn--sm { padding: 0.5rem 1.05rem; min-height: 38px; font-size: var(--vm-text-xs); }
.vm-btn--lg { padding: 0.95rem 2rem; min-height: 54px; font-size: var(--vm-text-base); }
.vm-btn--block { width: 100%; }
.vm-btn--icon { padding: 0; width: 44px; min-height: 44px; border-radius: 50%; }
.vm-btn--pill { border-radius: var(--vm-radius-pill); }
.vm-btn--icon.vm-btn--sm { width: 36px; min-height: 36px; }

/* Liên kết dạng "Tìm hiểu thêm →" */
.vm-link-more {
  display: inline-flex;
  align-items: center;
  gap: var(--vm-space-2);
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-weight-semi);
  color: var(--vm-brand);
}
.vm-link-more svg { width: 16px; height: 16px; transition: transform var(--vm-dur-base) var(--vm-ease-out); }
.vm-link-more:hover svg { transform: translateX(5px); }

/* =====================================================================
   2. NHÃN / CHIP
   ===================================================================== */
.vm-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.3rem 0.7rem;
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-2xs);
  font-weight: var(--vm-weight-bold);
  letter-spacing: var(--vm-tracking-wide);
  text-transform: uppercase;
  border-radius: var(--vm-radius-pill);
  background: var(--vm-brand-soft);
  color: var(--vm-brand);
  white-space: nowrap;
}
.vm-badge--cta { background: var(--vm-cta-soft); color: var(--vm-cta); }
.vm-badge--success { background: var(--vm-success-50); color: var(--vm-success-700); }
.vm-badge--warning { background: var(--vm-warning-50); color: var(--vm-warning-700); }
.vm-badge--neutral { background: var(--vm-bg-muted); color: var(--vm-text-soft); }
.vm-badge--solid { background: var(--vm-brand); color: var(--vm-text-on-brand); }
.vm-badge--glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.vm-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--vm-space-2);
  padding: 0.5rem 1rem;
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-weight-medium);
  border-radius: var(--vm-radius-pill);
  border: 1px solid var(--vm-border);
  background: var(--vm-surface);
  color: var(--vm-text-soft);
  cursor: pointer;
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-chip:hover { border-color: var(--vm-brand); color: var(--vm-brand); }
.vm-chip[aria-pressed="true"], .vm-chip.is-active {
  background: var(--vm-brand);
  border-color: var(--vm-brand);
  color: var(--vm-text-on-brand);
  box-shadow: var(--vm-shadow-sm);
}
.vm-chip__count {
  font-size: var(--vm-text-2xs);
  padding: 1px 7px;
  border-radius: var(--vm-radius-pill);
  background: color-mix(in srgb, currentColor 14%, transparent);
}

/* =====================================================================
   3. THẺ (CARD)
   ===================================================================== */
.vm-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-card);
  box-shadow: var(--vm-shadow-line);
  overflow: hidden;
  transition:
    transform var(--vm-dur-base) var(--vm-ease-out),
    box-shadow var(--vm-dur-base) var(--vm-ease-out),
    border-color var(--vm-dur-base) var(--vm-ease-out);
}
.vm-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--vm-shadow-lg);
  border-color: color-mix(in srgb, var(--vm-brand) 35%, var(--vm-border));
}
.vm-card__body { padding: var(--vm-space-5); display: flex; flex-direction: column; gap: var(--vm-space-3); flex: 1; }
.vm-card__title { font-size: var(--vm-text-lg); line-height: var(--vm-leading-snug); }
.vm-card__title a { color: inherit; }
.vm-card__title a:hover { color: var(--vm-brand); }
.vm-card__desc { color: var(--vm-text-soft); font-size: var(--vm-text-sm); line-height: var(--vm-leading-relaxed); }
.vm-card__foot {
  margin-top: auto;
  padding-top: var(--vm-space-4);
  border-top: 1px solid var(--vm-border-subtle);
  display: flex; align-items: center; justify-content: space-between; gap: var(--vm-space-3);
}
.vm-card__meta {
  display: flex; align-items: center; gap: var(--vm-space-4);
  font-size: var(--vm-text-xs); color: var(--vm-text-muted);
}
.vm-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.vm-card__meta svg { width: 14px; height: 14px; }

/* Viền phát sáng theo con trỏ */
.vm-card--glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(320px circle at var(--vm-mx, 50%) var(--vm-my, 0%),
              color-mix(in srgb, var(--vm-primary-400) 70%, transparent), transparent 65%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--vm-dur-base) var(--vm-ease-out);
  pointer-events: none;
  z-index: 2;
}
.vm-card--glow:hover::before { opacity: 1; }

/* Thẻ kính mờ trên nền tối */
.vm-card--glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--vm-text-on-deep);
}
.vm-card--glass .vm-card__desc { color: var(--vm-text-on-deep-soft); }
.vm-card--glass:hover { background: rgba(255, 255, 255, 0.13); }

/* Thẻ danh mục có ảnh nền */
.vm-cat-card {
  position: relative;
  display: block;
  border-radius: var(--vm-radius-lg);
  overflow: hidden;
  min-height: 280px;
  background: var(--vm-neutral-900);
  isolation: isolate;
  transition: transform var(--vm-dur-base) var(--vm-ease-out), box-shadow var(--vm-dur-base) var(--vm-ease-out);
}
.vm-cat-card:hover { transform: translateY(-6px); box-shadow: var(--vm-shadow-xl); }
.vm-cat-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.72;
  transition: transform var(--vm-dur-slower) var(--vm-ease-out), opacity var(--vm-dur-base) var(--vm-ease-out);
}
.vm-cat-card:hover .vm-cat-card__img { transform: scale(1.08); opacity: 0.55; }
.vm-cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10, 39, 51, 0.94) 6%, rgba(10, 39, 51, 0.55) 45%, rgba(10, 39, 51, 0.15) 100%);
}
.vm-cat-card__body {
  position: relative; z-index: 2;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: var(--vm-space-2);
  padding: var(--vm-space-6);
  color: #fff;
}
.vm-cat-card__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--vm-radius-md);
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  margin-bottom: var(--vm-space-2);
}
.vm-cat-card__icon svg { width: 22px; height: 22px; color: #fff; }
.vm-cat-card__title { font-size: var(--vm-text-lg); color: #fff; }
.vm-cat-card__desc {
  font-size: var(--vm-text-sm);
  color: rgba(255, 255, 255, 0.82);
  line-height: var(--vm-leading-normal);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height var(--vm-dur-slow) var(--vm-ease-out), opacity var(--vm-dur-slow) var(--vm-ease-out);
}
.vm-cat-card:hover .vm-cat-card__desc, .vm-cat-card:focus-within .vm-cat-card__desc {
  max-height: 8lh; opacity: 1;
}
.vm-cat-card__more {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-xs); font-weight: var(--vm-weight-bold);
  letter-spacing: var(--vm-tracking-wide); text-transform: uppercase;
  color: var(--vm-primary-200);
  margin-top: var(--vm-space-2);
}
.vm-cat-card__more svg { width: 15px; height: 15px; transition: transform var(--vm-dur-base) var(--vm-ease-out); }
.vm-cat-card:hover .vm-cat-card__more svg { transform: translateX(5px); }

/* Thẻ sản phẩm */
.vm-product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-card);
  box-shadow: var(--vm-shadow-line);
  overflow: hidden;
  transition: transform var(--vm-dur-base) var(--vm-ease-out),
              box-shadow var(--vm-dur-base) var(--vm-ease-out),
              border-color var(--vm-dur-base) var(--vm-ease-out);
}
.vm-product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--vm-shadow-lg);
  border-color: color-mix(in srgb, var(--vm-brand) 38%, var(--vm-border));
}
.vm-product-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--vm-neutral-0);
  overflow: hidden;
}
.vm-product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: var(--vm-space-5);
  transition: transform var(--vm-dur-slower) var(--vm-ease-out);
}
.vm-product-card:hover .vm-product-card__media img { transform: scale(1.07); }
.vm-product-card__tags {
  position: absolute; top: var(--vm-space-3); left: var(--vm-space-3);
  display: flex; flex-direction: column; gap: 6px; z-index: 2;
}
.vm-product-card__actions {
  position: absolute; top: var(--vm-space-3); right: var(--vm-space-3);
  display: flex; flex-direction: column; gap: 8px; z-index: 2;
  opacity: 0; transform: translateX(12px);
  transition: opacity var(--vm-dur-base) var(--vm-ease-out), transform var(--vm-dur-base) var(--vm-ease-out);
}
.vm-product-card:hover .vm-product-card__actions,
.vm-product-card:focus-within .vm-product-card__actions { opacity: 1; transform: none; }
.vm-product-card__icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  color: var(--vm-text-soft);
  box-shadow: var(--vm-shadow-sm);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-product-card__icon-btn:hover { background: var(--vm-brand); color: #fff; border-color: var(--vm-brand); }
.vm-product-card__icon-btn svg { width: 17px; height: 17px; }
.vm-product-card__body {
  padding: var(--vm-space-4) var(--vm-space-5) var(--vm-space-5);
  display: flex; flex-direction: column; gap: var(--vm-space-2); flex: 1;
}
.vm-product-card__cat {
  font-size: var(--vm-text-2xs);
  font-weight: var(--vm-weight-bold);
  letter-spacing: var(--vm-tracking-wide);
  text-transform: uppercase;
  color: var(--vm-brand);
}
.vm-product-card__title {
  font-size: var(--vm-text-base);
  font-weight: var(--vm-weight-semi);
  line-height: var(--vm-leading-snug);
  min-height: 2.6lh;
}
.vm-product-card__title a { color: var(--vm-text); }
.vm-product-card__title a:hover { color: var(--vm-brand); }
.vm-product-card__price {
  margin-top: auto;
  padding-top: var(--vm-space-3);
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-lg);
  font-weight: var(--vm-weight-bold);
  color: var(--vm-cta);
}
.vm-product-card__price--contact { color: var(--vm-text-soft); font-size: var(--vm-text-base); }
.vm-product-card__cart { margin-top: var(--vm-space-3); }

/* Thẻ tin tức */
.vm-news-card { display: flex; flex-direction: column; height: 100%; }
.vm-news-card .vm-media { border-radius: var(--vm-radius-lg) var(--vm-radius-lg) 0 0; }
.vm-news-card__date {
  position: absolute; top: var(--vm-space-3); left: var(--vm-space-3);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 12px;
  border-radius: var(--vm-radius-sm);
  background: var(--vm-grad-cta);
  color: #fff;
  line-height: 1.05;
  box-shadow: var(--vm-shadow-md);
}
.vm-news-card__date b { font-family: var(--vm-font-display); font-size: 1.15rem; font-weight: var(--vm-weight-black); }
.vm-news-card__date span { font-size: var(--vm-text-2xs); letter-spacing: var(--vm-tracking-wide); opacity: 0.9; }

/* Thẻ đối tác */
.vm-partner-card {
  display: flex; flex-direction: column; align-items: center; gap: var(--vm-space-3);
  padding: var(--vm-space-6);
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-lg);
  text-align: center;
  transition: all var(--vm-dur-base) var(--vm-ease-out);
}
.vm-partner-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--vm-shadow-lg);
  border-color: color-mix(in srgb, var(--vm-brand) 35%, var(--vm-border));
}
.vm-partner-card__logo {
  width: 100%; height: 90px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: var(--vm-radius-md);
  padding: var(--vm-space-3);
}
.vm-partner-card__logo img { max-height: 100%; width: auto; object-fit: contain; }
.vm-partner-card__name { font-size: var(--vm-text-md); font-weight: var(--vm-weight-bold); }
.vm-partner-card__country { font-size: var(--vm-text-xs); color: var(--vm-text-muted); }

/* Thẻ dịch vụ / lĩnh vực */
.vm-service-card {
  position: relative;
  display: flex; flex-direction: column; gap: var(--vm-space-4);
  padding: var(--vm-space-6);
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-lg);
  overflow: hidden;
  transition: all var(--vm-dur-base) var(--vm-ease-out);
}
.vm-service-card::before {
  content: "";
  position: absolute; inset: auto auto 0 0;
  width: 100%; height: 3px;
  background: var(--vm-grad-brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--vm-dur-slow) var(--vm-ease-out);
}
.vm-service-card:hover::before { transform: scaleX(1); }
.vm-service-card:hover { transform: translateY(-5px); box-shadow: var(--vm-shadow-lg); }
.vm-service-card__icon {
  width: 62px; height: 62px;
  display: grid; place-items: center;
  border-radius: var(--vm-radius-md);
  background: var(--vm-brand-soft);
  transition: all var(--vm-dur-base) var(--vm-ease-out);
}
.vm-service-card__icon img { width: 34px; height: 34px; object-fit: contain; }
.vm-service-card__icon svg { width: 28px; height: 28px; color: var(--vm-brand); }
.vm-service-card:hover .vm-service-card__icon { background: var(--vm-brand); }
.vm-service-card:hover .vm-service-card__icon svg { color: #fff; }
.vm-service-card__num {
  position: absolute; top: var(--vm-space-4); right: var(--vm-space-5);
  font-family: var(--vm-font-display);
  font-size: 3rem; font-weight: var(--vm-weight-black);
  line-height: 1;
  color: color-mix(in srgb, var(--vm-brand) 10%, transparent);
}

/* Thẻ giá trị / tính năng */
.vm-feature {
  display: flex; gap: var(--vm-space-4);
  padding: var(--vm-space-5);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  transition: all var(--vm-dur-base) var(--vm-ease-out);
}
.vm-feature:hover { border-color: color-mix(in srgb, var(--vm-brand) 40%, var(--vm-border)); box-shadow: var(--vm-shadow-md); }
.vm-feature__icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: var(--vm-radius-md);
  background: var(--vm-brand-soft);
  color: var(--vm-brand);
}
.vm-feature__icon svg { width: 24px; height: 24px; }
.vm-feature__title { font-size: var(--vm-text-md); margin-bottom: 4px; }
.vm-feature__desc { font-size: var(--vm-text-sm); color: var(--vm-text-soft); line-height: var(--vm-leading-relaxed); }

/* =====================================================================
   4. CHỈ SỐ / ĐẾM SỐ
   ===================================================================== */
.vm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: var(--vm-space-6);
}
.vm-stat { text-align: center; position: relative; }
.vm-stat__value {
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-4xl);
  font-weight: var(--vm-weight-black);
  line-height: 1;
  background: var(--vm-grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.vm-section--dark .vm-stat__value {
  background: linear-gradient(135deg, #ffffff 0%, var(--vm-primary-200) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vm-stat__label {
  margin-top: var(--vm-space-2);
  font-size: var(--vm-text-sm);
  color: var(--vm-text-soft);
  font-weight: var(--vm-weight-medium);
}
.vm-section--dark .vm-stat__label { color: var(--vm-text-on-deep-soft); }

/* =====================================================================
   5. BIỂU MẪU
   ===================================================================== */
.vm-form { display: grid; gap: var(--vm-space-5); }
.vm-form__row { display: grid; gap: var(--vm-space-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.vm-field { display: flex; flex-direction: column; gap: var(--vm-space-2); }
.vm-field__label {
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-weight-semi);
  color: var(--vm-text);
}
.vm-field__label .req { color: var(--vm-cta); margin-left: 2px; }
.vm-field__hint { font-size: var(--vm-text-xs); color: var(--vm-text-muted); }
.vm-field__error {
  font-size: var(--vm-text-xs);
  color: var(--vm-danger-600);
  display: none;
  align-items: flex-start; gap: 6px;
  line-height: var(--vm-leading-snug);
}
/* Thiếu dòng này thì SVG bên trong sẽ giãn hết bề ngang cột */
.vm-field__error svg {
  width: 14px; height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}
.vm-field.is-invalid .vm-field__error { display: flex; }
.vm-field.is-invalid .vm-input,
.vm-field.is-invalid .vm-textarea,
.vm-field.is-invalid .vm-select { border-color: var(--vm-danger-500); }

.vm-input, .vm-textarea, .vm-select {
  width: 100%;
  padding: 0.8rem 1rem;
  min-height: 48px;
  font-size: var(--vm-text-sm);
  background: var(--vm-surface);
  color: var(--vm-text);
  border: 1.5px solid var(--vm-border);
  border-radius: var(--vm-radius-control);
  transition: border-color var(--vm-dur-fast) var(--vm-ease-out),
              box-shadow var(--vm-dur-fast) var(--vm-ease-out),
              background-color var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-input::placeholder, .vm-textarea::placeholder { color: var(--vm-text-muted); }
.vm-input:hover, .vm-textarea:hover, .vm-select:hover { border-color: var(--vm-border-strong); }
.vm-input:focus, .vm-textarea:focus, .vm-select:focus {
  outline: none;
  border-color: var(--vm-brand);
  box-shadow: var(--vm-shadow-focus);
}
.vm-textarea { min-height: 130px; resize: vertical; line-height: var(--vm-leading-normal); }
.vm-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236d8095' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
  cursor: pointer;
}

/* Ô nhập có biểu tượng */
.vm-input-group { position: relative; display: flex; align-items: center; }
.vm-input-group svg {
  position: absolute; left: 1rem;
  width: 18px; height: 18px;
  color: var(--vm-text-muted);
  pointer-events: none;
}
.vm-input-group .vm-input { padding-left: 2.85rem; }

.vm-check { display: flex; align-items: flex-start; gap: var(--vm-space-3); cursor: pointer; font-size: var(--vm-text-sm); }
.vm-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--vm-brand); cursor: pointer; flex-shrink: 0; }

/* Mã bảo mật */
.vm-captcha { display: flex; align-items: center; gap: var(--vm-space-3); flex-wrap: wrap; }
.vm-captcha__code {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 118px; height: 48px;
  padding-inline: var(--vm-space-4);
  font-family: var(--vm-font-mono);
  font-size: 1.35rem; font-weight: var(--vm-weight-bold);
  letter-spacing: 0.32em;
  color: var(--vm-primary-800);
  background:
    repeating-linear-gradient(45deg, transparent 0 6px, rgba(12, 157, 203, 0.09) 6px 12px),
    var(--vm-primary-50);
  border: 1.5px dashed var(--vm-primary-300);
  border-radius: var(--vm-radius-md);
  user-select: none;
  text-decoration: line-through;
  text-decoration-color: rgba(12, 157, 203, 0.35);
}
.vm-captcha__reload {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: var(--vm-radius-md);
  border: 1.5px solid var(--vm-border);
  color: var(--vm-text-soft);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-captcha__reload:hover { color: var(--vm-brand); border-color: var(--vm-brand); transform: rotate(90deg); }
.vm-captcha__reload svg { width: 18px; height: 18px; }
.vm-captcha .vm-input { max-width: 180px; }

/* Bộ đếm số lượng */
.vm-qty { display: inline-flex; align-items: center; border: 1.5px solid var(--vm-border); border-radius: var(--vm-radius-pill); overflow: hidden; }
.vm-qty button {
  width: 42px; height: 44px;
  display: grid; place-items: center;
  color: var(--vm-text-soft);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-qty button:hover { background: var(--vm-brand-soft); color: var(--vm-brand); }
.vm-qty button svg { width: 16px; height: 16px; }
.vm-qty input {
  width: 56px; height: 44px;
  text-align: center;
  border: 0; background: transparent;
  font-weight: var(--vm-weight-semi);
  -moz-appearance: textfield;
}
.vm-qty input::-webkit-outer-spin-button,
.vm-qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* =====================================================================
   6. THÔNG BÁO
   ===================================================================== */
.vm-alert {
  display: flex; gap: var(--vm-space-3);
  padding: var(--vm-space-4) var(--vm-space-5);
  border-radius: var(--vm-radius-md);
  border: 1px solid;
  font-size: var(--vm-text-sm);
  line-height: var(--vm-leading-normal);
}
.vm-alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.vm-alert--info { background: var(--vm-info-50); border-color: color-mix(in srgb, var(--vm-info-500) 30%, transparent); color: var(--vm-info-600); }
.vm-alert--success { background: var(--vm-success-50); border-color: color-mix(in srgb, var(--vm-success-500) 30%, transparent); color: var(--vm-success-700); }
.vm-alert--warning { background: var(--vm-warning-50); border-color: color-mix(in srgb, var(--vm-warning-500) 30%, transparent); color: var(--vm-warning-700); }
.vm-alert--danger { background: var(--vm-danger-50); border-color: color-mix(in srgb, var(--vm-danger-500) 30%, transparent); color: var(--vm-danger-700); }

/* Toast nổi góc màn hình */
.vm-toast-wrap {
  position: fixed;
  right: var(--vm-space-5); bottom: var(--vm-space-5);
  z-index: var(--vm-z-toast);
  display: flex; flex-direction: column; gap: var(--vm-space-3);
  max-width: min(360px, calc(100vw - 2rem));
  pointer-events: none;
}
.vm-toast {
  display: flex; align-items: flex-start; gap: var(--vm-space-3);
  padding: var(--vm-space-4);
  border-radius: var(--vm-radius-md);
  background: var(--vm-surface);
  border: 1px solid var(--vm-border);
  box-shadow: var(--vm-shadow-xl);
  font-size: var(--vm-text-sm);
  pointer-events: auto;
  animation: vm-fade-up var(--vm-dur-slow) var(--vm-ease-spring);
}
.vm-toast.is-leaving { animation: vm-fade-in var(--vm-dur-base) reverse forwards; }
.vm-toast__icon { width: 22px; height: 22px; flex-shrink: 0; }
.vm-toast--success .vm-toast__icon { color: var(--vm-success-600); }
.vm-toast--danger .vm-toast__icon { color: var(--vm-danger-600); }
.vm-toast--info .vm-toast__icon { color: var(--vm-info-600); }
.vm-toast__title { font-weight: var(--vm-weight-semi); margin-bottom: 2px; }
.vm-toast__msg { color: var(--vm-text-soft); font-size: var(--vm-text-xs); }
.vm-toast__close { margin-left: auto; color: var(--vm-text-muted); }
.vm-toast__close svg { width: 16px; height: 16px; }

/* =====================================================================
   7. ĐƯỜNG DẪN & PHÂN TRANG
   ===================================================================== */
.vm-breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--vm-space-2); font-size: var(--vm-text-sm); }
.vm-breadcrumb li { display: inline-flex; align-items: center; gap: var(--vm-space-2); }
.vm-breadcrumb a { color: inherit; opacity: 0.82; }
.vm-breadcrumb a:hover { opacity: 1; }
.vm-breadcrumb li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
}
.vm-breadcrumb [aria-current="page"] { font-weight: var(--vm-weight-semi); opacity: 1; }

.vm-pagination { display: flex; align-items: center; justify-content: center; gap: var(--vm-space-2); flex-wrap: wrap; }
.vm-pagination button, .vm-pagination a {
  min-width: 42px; height: 42px;
  display: inline-grid; place-items: center;
  padding-inline: var(--vm-space-3);
  border-radius: var(--vm-radius-md);
  border: 1px solid var(--vm-border);
  background: var(--vm-surface);
  color: var(--vm-text-soft);
  font-size: var(--vm-text-sm); font-weight: var(--vm-weight-medium);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-pagination button:hover:not(:disabled), .vm-pagination a:hover {
  border-color: var(--vm-brand); color: var(--vm-brand); background: var(--vm-brand-soft);
}
.vm-pagination .is-active {
  background: var(--vm-brand); border-color: var(--vm-brand); color: var(--vm-text-on-brand);
  box-shadow: var(--vm-shadow-sm);
}
.vm-pagination button:disabled { opacity: 0.4; cursor: not-allowed; }
.vm-pagination svg { width: 16px; height: 16px; }

/* =====================================================================
   8. TAB & ACCORDION
   ===================================================================== */
.vm-tabs { display: flex; gap: var(--vm-space-1); border-bottom: 1px solid var(--vm-border); overflow-x: auto; scrollbar-width: none; }
.vm-tabs::-webkit-scrollbar { display: none; }
.vm-tab {
  position: relative;
  padding: var(--vm-space-4) var(--vm-space-5);
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-sm);
  font-weight: var(--vm-weight-semi);
  color: var(--vm-text-soft);
  white-space: nowrap;
  transition: color var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-tab::after {
  content: "";
  position: absolute; left: var(--vm-space-4); right: var(--vm-space-4); bottom: -1px;
  height: 2.5px; border-radius: 3px;
  background: var(--vm-grad-cta);
  transform: scaleX(0);
  transition: transform var(--vm-dur-base) var(--vm-ease-out);
}
.vm-tab:hover { color: var(--vm-text); }
.vm-tab[aria-selected="true"] { color: var(--vm-brand); }
.vm-tab[aria-selected="true"]::after { transform: scaleX(1); }
.vm-tab-panel { padding-top: var(--vm-space-6); }
.vm-tab-panel[hidden] { display: none; }

.vm-accordion { display: flex; flex-direction: column; gap: var(--vm-space-3); }
.vm-accordion__item {
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-md);
  background: var(--vm-surface);
  overflow: hidden;
  transition: border-color var(--vm-dur-base) var(--vm-ease-out), box-shadow var(--vm-dur-base) var(--vm-ease-out);
}
.vm-accordion__item.is-open { border-color: color-mix(in srgb, var(--vm-brand) 45%, var(--vm-border)); box-shadow: var(--vm-shadow-sm); }
.vm-accordion__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--vm-space-4);
  padding: var(--vm-space-5);
  text-align: left;
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-md);
  font-weight: var(--vm-weight-semi);
  color: var(--vm-text);
  transition: color var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-accordion__btn:hover { color: var(--vm-brand); }
.vm-accordion__ico {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vm-brand-soft);
  color: var(--vm-brand);
  transition: transform var(--vm-dur-base) var(--vm-ease-out), background-color var(--vm-dur-base) var(--vm-ease-out);
}
.vm-accordion__ico svg { width: 16px; height: 16px; }
.vm-accordion__item.is-open .vm-accordion__ico { transform: rotate(180deg); background: var(--vm-brand); color: #fff; }
.vm-accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--vm-dur-slow) var(--vm-ease-out); }
.vm-accordion__item.is-open .vm-accordion__panel { grid-template-rows: 1fr; }
.vm-accordion__inner { overflow: hidden; }
.vm-accordion__inner > div {
  padding: 0 var(--vm-space-5) var(--vm-space-5);
  color: var(--vm-text-soft);
  font-size: var(--vm-text-sm);
  line-height: var(--vm-leading-relaxed);
}

/* =====================================================================
   9. HỘP THOẠI
   ===================================================================== */
.vm-modal {
  position: fixed; inset: 0;
  z-index: var(--vm-z-modal);
  display: grid; place-items: center;
  padding: var(--vm-gutter);
  background: var(--vm-overlay);
  backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden;
  transition: opacity var(--vm-dur-base) var(--vm-ease-out), visibility var(--vm-dur-base);
}
.vm-modal.is-open { opacity: 1; visibility: visible; }
.vm-modal__box {
  width: min(760px, 100%);
  max-height: min(86dvh, 900px);
  overflow: auto;
  background: var(--vm-surface);
  border-radius: var(--vm-radius-xl);
  box-shadow: var(--vm-shadow-xl);
  transform: translateY(24px) scale(0.97);
  transition: transform var(--vm-dur-slow) var(--vm-ease-spring);
}
.vm-modal.is-open .vm-modal__box { transform: none; }
.vm-modal__box--video { width: min(1000px, 100%); background: #000; padding: 0; overflow: hidden; }
.vm-modal__head {
  position: sticky; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: var(--vm-space-4);
  padding: var(--vm-space-5) var(--vm-space-6);
  border-bottom: 1px solid var(--vm-border);
  background: var(--vm-surface);
  z-index: 2;
}
.vm-modal__body { padding: var(--vm-space-6); }
.vm-modal__close {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--vm-text-soft);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-modal__close:hover { background: var(--vm-danger-50); color: var(--vm-danger-600); }
.vm-modal__close svg { width: 20px; height: 20px; }

/* =====================================================================
   10. TRẠNG THÁI TẢI / RỖNG
   ===================================================================== */
.vm-skeleton {
  background: linear-gradient(100deg,
      var(--vm-bg-muted) 30%,
      color-mix(in srgb, var(--vm-bg-muted) 55%, var(--vm-surface)) 50%,
      var(--vm-bg-muted) 70%);
  background-size: 240% 100%;
  animation: vm-shimmer 1.4s linear infinite;
  border-radius: var(--vm-radius-sm);
}
.vm-skeleton--card { height: 320px; border-radius: var(--vm-radius-lg); }
.vm-skeleton--text { height: 0.9em; margin-block: 0.35em; }
.vm-skeleton--title { height: 1.4em; width: 65%; }

.vm-spinner {
  width: 24px; height: 24px;
  border: 2.5px solid color-mix(in srgb, var(--vm-brand) 25%, transparent);
  border-top-color: var(--vm-brand);
  border-radius: 50%;
  animation: vm-spin 0.75s linear infinite;
}

.vm-empty {
  display: flex; flex-direction: column; align-items: center; gap: var(--vm-space-4);
  padding: var(--vm-space-16) var(--vm-space-6);
  text-align: center;
  color: var(--vm-text-soft);
}
.vm-empty__icon {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vm-bg-muted);
  color: var(--vm-text-muted);
}
.vm-empty__icon svg { width: 38px; height: 38px; }
.vm-empty__title { font-size: var(--vm-text-lg); color: var(--vm-text); }

/* =====================================================================
   11. BĂNG CHUYỀN LOGO (marquee thuần CSS)
   ===================================================================== */
.vm-marquee {
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.vm-marquee__track {
  display: flex;
  width: max-content;
  gap: var(--vm-space-12);
  animation: vm-marquee var(--vm-marquee-dur, 38s) linear infinite;
}
.vm-marquee:hover .vm-marquee__track { animation-play-state: paused; }
.vm-marquee__item {
  flex-shrink: 0;
  display: grid; place-items: center;
  width: 168px; height: 84px;
  padding: var(--vm-space-3);
  background: #fff;
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-md);
  filter: grayscale(1);
  opacity: 0.68;
  transition: filter var(--vm-dur-base) var(--vm-ease-out), opacity var(--vm-dur-base) var(--vm-ease-out), transform var(--vm-dur-base) var(--vm-ease-out);
}
.vm-marquee__item:hover { filter: none; opacity: 1; transform: translateY(-4px); }
.vm-marquee__item img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =====================================================================
   12. DÒNG THỜI GIAN
   ===================================================================== */
.vm-timeline { position: relative; display: flex; flex-direction: column; gap: var(--vm-space-8); padding-left: var(--vm-space-8); }
.vm-timeline::before {
  content: "";
  position: absolute; left: 9px; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--vm-primary-400), var(--vm-accent-500));
  border-radius: 2px;
}
.vm-timeline__item { position: relative; }
.vm-timeline__item::before {
  content: "";
  position: absolute; left: calc(-1 * var(--vm-space-8) + 4px); top: 6px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--vm-surface);
  border: 3px solid var(--vm-brand);
  box-shadow: 0 0 0 4px var(--vm-brand-soft);
}
.vm-timeline__year {
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-sm); font-weight: var(--vm-weight-bold);
  letter-spacing: var(--vm-tracking-wide);
  color: var(--vm-cta);
}
.vm-timeline__title { font-size: var(--vm-text-md); margin-block: 4px 6px; }
.vm-timeline__desc { font-size: var(--vm-text-sm); color: var(--vm-text-soft); line-height: var(--vm-leading-relaxed); }

/* =====================================================================
   13. BẢNG
   ===================================================================== */
.vm-table-wrap { overflow-x: auto; border: 1px solid var(--vm-border); border-radius: var(--vm-radius-lg); }
.vm-table { width: 100%; font-size: var(--vm-text-sm); border-collapse: collapse; }
.vm-table th, .vm-table td { padding: var(--vm-space-4) var(--vm-space-5); text-align: left; }
.vm-table thead th {
  background: var(--vm-bg-subtle);
  font-family: var(--vm-font-display);
  font-weight: var(--vm-weight-semi);
  color: var(--vm-text);
  white-space: nowrap;
}
.vm-table tbody tr { border-top: 1px solid var(--vm-border-subtle); }
.vm-table tbody tr:hover { background: var(--vm-bg-subtle); }
.vm-table td { color: var(--vm-text-soft); }
.vm-table--specs th { width: 38%; color: var(--vm-text-soft); font-weight: var(--vm-weight-medium); background: transparent; }
.vm-table--specs td { color: var(--vm-text); font-weight: var(--vm-weight-medium); }
.vm-table--specs tbody tr:nth-child(odd) { background: var(--vm-bg-subtle); }
.vm-table--specs tbody tr:hover { background: var(--vm-brand-soft); }

/* =====================================================================
   14. NỘI DUNG BÀI VIẾT (prose)
   ===================================================================== */
.vm-prose { font-size: var(--vm-text-md); line-height: var(--vm-leading-relaxed); color: var(--vm-text-soft); }
.vm-prose > * + * { margin-top: var(--vm-space-5); }
.vm-prose h2 {
  font-size: var(--vm-text-2xl);
  color: var(--vm-text);
  margin-top: var(--vm-space-12);
  padding-left: var(--vm-space-4);
  border-left: 4px solid var(--vm-cta);
  scroll-margin-top: calc(var(--vm-header-h) + 2rem);
}
.vm-prose h3 {
  font-size: var(--vm-text-lg);
  color: var(--vm-text);
  margin-top: var(--vm-space-8);
  scroll-margin-top: calc(var(--vm-header-h) + 2rem);
}
.vm-prose p { color: var(--vm-text-soft); }
.vm-prose strong { color: var(--vm-text); font-weight: var(--vm-weight-semi); }
.vm-prose a { color: var(--vm-brand); text-decoration: underline; text-underline-offset: 3px; }
.vm-prose ul, .vm-prose ol { padding-left: var(--vm-space-6); display: flex; flex-direction: column; gap: var(--vm-space-2); }
.vm-prose ul { list-style: none; padding-left: 0; }
.vm-prose ul > li { position: relative; padding-left: var(--vm-space-7); }
.vm-prose ul > li::before {
  content: "";
  position: absolute; left: 0; top: 0.58em;
  width: 8px; height: 8px;
  border-radius: 2px;
  background: var(--vm-grad-cta);
  transform: rotate(45deg);
}
.vm-prose ol { list-style: decimal; }
.vm-prose ol::marker { color: var(--vm-brand); font-weight: var(--vm-weight-bold); }
.vm-prose blockquote {
  padding: var(--vm-space-5) var(--vm-space-6);
  border-left: 4px solid var(--vm-brand);
  border-radius: 0 var(--vm-radius-md) var(--vm-radius-md) 0;
  background: var(--vm-brand-soft);
  font-size: var(--vm-text-md);
  font-style: italic;
  color: var(--vm-text);
}
.vm-prose table { font-size: var(--vm-text-sm); border: 1px solid var(--vm-border); border-radius: var(--vm-radius-md); overflow: hidden; }
.vm-prose th, .vm-prose td { padding: var(--vm-space-3) var(--vm-space-4); border: 1px solid var(--vm-border-subtle); text-align: left; }
.vm-prose thead th { background: var(--vm-bg-subtle); color: var(--vm-text); font-weight: var(--vm-weight-semi); }
.vm-prose img { border-radius: var(--vm-radius-lg); margin-block: var(--vm-space-6); }

/* Mục lục bài viết */
.vm-toc {
  padding: var(--vm-space-5);
  border: 1px solid var(--vm-border);
  border-radius: var(--vm-radius-lg);
  background: var(--vm-bg-subtle);
}
.vm-toc__title {
  font-family: var(--vm-font-display);
  font-size: var(--vm-text-sm); font-weight: var(--vm-weight-bold);
  letter-spacing: var(--vm-tracking-wide); text-transform: uppercase;
  color: var(--vm-brand);
  margin-bottom: var(--vm-space-3);
}
.vm-toc ol { list-style: none; display: flex; flex-direction: column; gap: var(--vm-space-2); counter-reset: toc; }
.vm-toc li { counter-increment: toc; }
.vm-toc a {
  display: flex; gap: var(--vm-space-2);
  font-size: var(--vm-text-sm);
  color: var(--vm-text-soft);
  line-height: var(--vm-leading-snug);
  padding: 4px 0;
  border-left: 2px solid transparent;
  padding-left: var(--vm-space-3);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-toc a::before { content: counter(toc) "."; color: var(--vm-brand); font-weight: var(--vm-weight-bold); }
.vm-toc a:hover, .vm-toc a.is-active { color: var(--vm-brand); border-left-color: var(--vm-brand); }

/* =====================================================================
   15. CHIA SẺ MẠNG XÃ HỘI
   ===================================================================== */
.vm-share { display: flex; align-items: center; gap: var(--vm-space-2); flex-wrap: wrap; }
.vm-share__btn {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--vm-border);
  color: var(--vm-text-soft);
  transition: all var(--vm-dur-fast) var(--vm-ease-out);
}
.vm-share__btn:hover { transform: translateY(-3px); color: #fff; border-color: transparent; }
.vm-share__btn svg { width: 17px; height: 17px; }
.vm-share__btn[data-net="facebook"]:hover { background: #1877f2; }
.vm-share__btn[data-net="x"]:hover { background: #0f1419; }
.vm-share__btn[data-net="linkedin"]:hover { background: #0a66c2; }
.vm-share__btn[data-net="zalo"]:hover { background: #0068ff; }
.vm-share__btn[data-net="copy"]:hover { background: var(--vm-brand); }

/* =====================================================================
   16. NÚT NỔI: LÊN ĐẦU TRANG & LIÊN HỆ NHANH
   ===================================================================== */
.vm-to-top {
  position: fixed;
  right: var(--vm-space-5); bottom: var(--vm-space-5);
  z-index: var(--vm-z-sticky);
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--vm-brand);
  color: #fff;
  box-shadow: var(--vm-shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: all var(--vm-dur-base) var(--vm-ease-out);
}
.vm-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.vm-to-top:hover { background: var(--vm-brand-hover); transform: translateY(-3px); }
.vm-to-top svg { width: 20px; height: 20px; }

.vm-quick-contact {
  position: fixed;
  left: var(--vm-space-5); bottom: var(--vm-space-5);
  z-index: var(--vm-z-sticky);
  display: flex; flex-direction: column; gap: var(--vm-space-3);
}
.vm-quick-contact__btn {
  position: relative;
  width: 50px; height: 50px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: var(--vm-shadow-lg);
  transition: transform var(--vm-dur-base) var(--vm-ease-spring);
}
.vm-quick-contact__btn:hover { transform: scale(1.1); color: #fff; }
.vm-quick-contact__btn svg { width: 23px; height: 23px; }
.vm-quick-contact__btn--phone { background: var(--vm-cta); animation: vm-pulse-ring 2.4s var(--vm-ease-out) infinite; }
.vm-quick-contact__btn--zalo { background: #0068ff; }
.vm-quick-contact__btn--fb { background: #1877f2; }
.vm-quick-contact__btn--mail { background: var(--vm-primary-600); }
.vm-quick-contact__label {
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(-8px);
  padding: 6px 12px;
  border-radius: var(--vm-radius-sm);
  background: var(--vm-neutral-900);
  color: #fff;
  font-size: var(--vm-text-xs);
  white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: all var(--vm-dur-base) var(--vm-ease-out);
}
.vm-quick-contact__btn:hover .vm-quick-contact__label { opacity: 1; transform: translateY(-50%); }

@media (max-width: 640px) {
  .vm-quick-contact { flex-direction: row; left: var(--vm-space-4); bottom: var(--vm-space-4); }
  .vm-quick-contact__btn { width: 44px; height: 44px; }
  .vm-quick-contact__label { display: none; }
  .vm-to-top { width: 42px; height: 42px; right: var(--vm-space-4); bottom: calc(var(--vm-space-4) + 56px); }
}

/* =====================================================================
   17. THANH TIẾN TRÌNH ĐỌC
   ===================================================================== */
.vm-read-progress {
  position: fixed; top: 0; left: 0;
  z-index: calc(var(--vm-z-header) + 1);
  height: 3px;
  width: 0;
  background: var(--vm-grad-cta);
  transition: width 80ms linear;
}
