/* ==========================================================================
   Driving AI — Dàn Xe Sát Hạch 3D Uốn Cong (100% Tiếng Việt)
   Thiết kế Showroom hiện đại, cân đối hài hòa, ảnh xe thật sắc nét,
   chuyển đổi mượt mà giữa các hạng bằng.
   ========================================================================== */

:root {
  --paper: #ECE8E0;
  --paper-warm: #E4DFD5;
  --paper-sheet: #F5F2EB;
  --card-bg: rgba(255, 255, 255, 0.86);
  --ink: #12151E;
  --ink-soft: #2D3342;
  --muted: #5E6474;
  --Cobalt: #1E40AF;
  --Cobalt-hover: #17328F;
  --Cobalt-soft: rgba(30, 64, 175, 0.09);
  --vermilion: #D93822;
  --emerald: #107C41;
  --rule: rgba(18, 21, 30, 0.11);
  --rule-strong: rgba(18, 21, 30, 0.2);

  /* Font 100% hỗ trợ dấu Tiếng Việt chuẩn xác */
  --f-display: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  --f-condensed: 'Oswald', 'Be Vietnam Pro', sans-serif;
  --f-mono: 'Be Vietnam Pro', system-ui, sans-serif;
  --f-body: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;

  /* Tỷ lệ khung xe 3D nằm ngang cân đối trên màn hình chính */
  --stage-top: 43.5%;
  --H: min(32.5vh, 23.5vw);
  --W: calc(var(--H) * 1.58);
  --SW: calc(var(--H) * 0.25);
}

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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

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

.lp-skip {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 8px 14px;
  background: var(--Cobalt);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.lp-skip:focus {
  top: 12px;
}

.lp-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* --------------------------------------------------------------------------
   Kiểu chữ nhãn (.lbl), Biểu tượng (.ic, .lp-icon) & Nút khung (.box)
   -------------------------------------------------------------------------- */
.ic,
.lp-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.lbl {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 8px;
  padding: 8px 15px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition:
    background-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.box:hover {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
  transform: translateY(-1.5px);
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.22);
}

#h-probe {
  position: fixed;
  width: var(--W);
  height: var(--H);
  visibility: hidden;
  pointer-events: none;
  z-index: -1;
}

/* Lớp vân giấy mịn (Paper Grain Overlay) */
.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.28;
}

.grain svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --------------------------------------------------------------------------
   Thanh điều hướng trên cùng (Top Bar — Gọn gàng, tinh tế trên 1 hàng)
   -------------------------------------------------------------------------- */
.topbar {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, calc(100vw - 32px));
  height: 46px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px;
  border-radius: 12px;
  background: rgba(252, 250, 246, 0.92);
  border: 1px solid rgba(18, 21, 30, 0.11);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 22px rgba(18, 21, 30, 0.06);
}

.topbar__left-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  flex-shrink: 0;
}

.topbar__short {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--Cobalt);
  padding: 4px 8px;
  border-radius: 6px;
  line-height: 1.2;
}

.topbar__name {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-transform: uppercase;
  white-space: nowrap;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 12px;
  border-left: 1px solid var(--rule-strong);
  color: var(--ink-soft);
  min-width: 0;
}

.topbar__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.topbar__meta-phone {
  color: var(--Cobalt);
  font-weight: 800;
  background: var(--Cobalt-soft);
  padding: 5px 10px;
  border-radius: 999px;
  transition: background-color 0.2s ease;
}

.topbar__meta-phone:hover {
  background: rgba(30, 64, 175, 0.16);
}

.topbar__hotline-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.topbar__hotline-count {
  font-style: normal;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 999px;
  background: #0068FF;
  color: #FFFFFF;
  margin-left: 3px;
}

.topbar__hotline-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 268px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 16px 38px rgba(18, 21, 30, 0.14);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s ease, transform 0.22s ease, visibility 0.2s ease;
  z-index: 40;
}

.topbar__hotline-wrap:hover .topbar__hotline-menu,
.topbar__hotline-wrap:focus-within .topbar__hotline-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar__hotline-title {
  font-size: 9px;
  font-weight: 800;
  color: var(--muted);
  padding: 2px 4px 4px;
  border-bottom: 1px solid var(--rule);
}

.topbar__hotline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 9px;
  background: var(--paper-sheet);
}

.topbar__hotline-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.topbar__hotline-info strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
}

.topbar__hotline-info span {
  font-size: 10px;
  color: var(--muted);
}

.topbar__hotline-links {
  display: flex;
  align-items: center;
  gap: 5px;
}

.topbar__hotline-btn {
  padding: 4px 9px;
  border-radius: 6px;
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  font-size: 10px;
  font-weight: 800;
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.topbar__hotline-btn:hover {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #FFFFFF;
}

.topbar__hotline-btn--zalo {
  background: #0068FF;
  border-color: #0068FF;
  color: #FFFFFF;
}

.topbar__hotline-btn--zalo:hover {
  background: #0052CC;
  border-color: #0052CC;
}

.topbar__meta-addr {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}

.topbar__meta-item svg,
.topbar__meta-item .ic,
.topbar__meta-item .lp-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.topbar__link {
  position: relative;
  border: 0;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 4px 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.topbar__link::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--Cobalt);
  transform: scaleX(0);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.topbar__link:hover {
  color: var(--Cobalt);
}

.topbar__link:hover::after {
  transform: scaleX(1);
}

.topbar__cta {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
  padding: 6px 13px;
  border-radius: 7px;
  font-size: 10.5px;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.22);
}

.burger {
  display: none;
  width: 30px;
  height: 22px;
  border: 0;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* --------------------------------------------------------------------------
   Dải thông báo trạng thái tuyển sinh (.hero-infobar)
   -------------------------------------------------------------------------- */
.hero-infobar {
  position: fixed;
  top: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 15;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px;
  border: 1px solid rgba(18, 21, 30, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 16px rgba(18, 21, 30, 0.04);
}

.hero-infobar__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--Cobalt);
  font-weight: 800;
}

.hero-infobar__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16, 124, 65, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(16, 124, 65, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 124, 65, 0); }
}

.hero-infobar__slots strong {
  color: var(--vermilion);
  font-weight: 800;
}

.hero-infobar__sep {
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   Không gian Showroom 3D & Ánh sáng tâm điểm
   -------------------------------------------------------------------------- */
.archive-hero {
  position: fixed;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 84% 58% at 50% 34%, rgba(255, 255, 255, 0.94) 0%, rgba(242, 238, 229, 0.45) 55%, rgba(226, 220, 208, 0) 80%),
    radial-gradient(circle at 16% 18%, rgba(30, 64, 175, 0.08) 0%, transparent 46%),
    radial-gradient(circle at 84% 22%, rgba(217, 56, 34, 0.06) 0%, transparent 46%),
    linear-gradient(180deg, #F6F3EC 0%, #EAE4D9 52%, #DFD8CA 100%);
}

/* Không gian nền Showroom Kiến Trúc & Đường Băng Sa Hình 3D */
.showroom-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.showroom-bg__wall {
  position: absolute;
  inset: 0 0 42% 0;
  background-image:
    linear-gradient(to right, rgba(30, 64, 175, 0.068) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 64, 175, 0.068) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center top;
  mask-image: radial-gradient(ellipse 86% 88% at 50% 44%, #000 22%, transparent 84%);
  -webkit-mask-image: radial-gradient(ellipse 86% 88% at 50% 44%, #000 22%, transparent 84%);
}

.showroom-bg__beams {
  position: absolute;
  top: -16%;
  left: 50%;
  width: 136vw;
  height: 82vh;
  transform: translateX(-50%);
  background:
    conic-gradient(
      from 180deg at 50% 0%,
      transparent 134deg,
      rgba(30, 64, 175, 0.085) 154deg,
      rgba(255, 255, 255, 0.72) 175deg,
      rgba(30, 64, 175, 0.11) 180deg,
      rgba(255, 255, 255, 0.72) 185deg,
      rgba(217, 56, 34, 0.065) 206deg,
      transparent 226deg
    );
  filter: blur(20px);
  opacity: 0.95;
}

.showroom-bg__horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--stage-top) + var(--H) * 0.46);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 4%,
    rgba(30, 64, 175, 0.18) 22%,
    rgba(30, 64, 175, 0.45) 50%,
    rgba(30, 64, 175, 0.18) 78%,
    transparent 96%
  );
  box-shadow: 0 0 32px rgba(30, 64, 175, 0.24);
}

.showroom-bg__floor {
  position: absolute;
  left: -20%;
  right: -20%;
  top: calc(var(--stage-top) + var(--H) * 0.46);
  bottom: -15%;
  perspective: 620px;
  overflow: hidden;
}

.showroom-bg__lanes {
  position: absolute;
  inset: -10% 0 0 0;
  transform-origin: 50% 0%;
  transform: rotateX(66deg);
  background-image:
    linear-gradient(to right, rgba(18, 21, 30, 0.085) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(18, 21, 30, 0.085) 1px, transparent 1px);
  background-size: 80px 60px;
  mask-image: radial-gradient(ellipse 72% 88% at 50% 10%, #000 18%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 72% 88% at 50% 10%, #000 18%, transparent 80%);
}

/* Bục xoay tròn Showroom (Turntable Podium) ôm sát ngay dưới đế xe trung tâm */
.showroom-bg__turntable {
  position: absolute;
  left: 50%;
  top: 2px;
  width: min(calc(var(--W) * 1.24), 92vw);
  height: clamp(28px, calc(var(--W) * 0.14), 56px);
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(30, 64, 175, 0.28);
  background:
    radial-gradient(
      ellipse at center,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(30, 64, 175, 0.09) 48%,
      rgba(217, 56, 34, 0.03) 68%,
      transparent 78%
    );
  box-shadow:
    inset 0 0 0 8px rgba(255, 255, 255, 0.45),
    0 12px 32px rgba(18, 21, 30, 0.09);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease;
}

.showroom-bg__turntable::after {
  content: "";
  position: absolute;
  inset: 5px 18px;
  border-radius: 50%;
  border: 1.5px dashed rgba(30, 64, 175, 0.32);
}

.archive-hero.is-switching .showroom-bg__turntable {
  transform: translateX(-50%) scale(1.04);
  border-color: rgba(30, 64, 175, 0.48);
}

/* Cụm Tiêu Đề & Thông Số Trung Tâm Phía Trên Sân Khấu 3D (.hero-head) */
.hero-head {
  position: fixed;
  top: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  width: min(860px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  pointer-events: none;
}

.hero-head__kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(30, 64, 175, 0.2);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(18, 21, 30, 0.05);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--Cobalt);
  text-transform: uppercase;
}

.hero-head__pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(16, 124, 65, 0.2);
}

.hero-head__sep {
  opacity: 0.45;
}

.hero-head__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 2.25vw, 31px);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 8px;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.8);
}

.hero-head__line--accent {
  color: var(--Cobalt);
}

.hero-head__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 2px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(18, 21, 30, 0.11);
  backdrop-filter: blur(8px);
  font-size: 10.5px;
  color: var(--ink-soft);
  box-shadow: 0 2px 8px rgba(18, 21, 30, 0.04);
}

.hero-chip svg,
.hero-chip .ic,
.hero-chip .lp-icon {
  width: 13px;
  height: 13px;
  color: var(--Cobalt);
}

.hero-chip strong {
  font-weight: 800;
  color: var(--ink);
}

.hero-chip--live {
  border-color: rgba(16, 124, 65, 0.25);
  background: rgba(255, 255, 255, 0.88);
}

.hero-chip--live svg,
.hero-chip--live .ic,
.hero-chip--live .lp-icon,
.hero-chip--live strong {
  color: var(--emerald);
}

.showroom-corner {
  position: fixed;
  top: 70px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(18, 21, 30, 0.09);
  backdrop-filter: blur(6px);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.showroom-corner--left {
  left: 28px;
}

.showroom-corner--right {
  right: 28px;
}

.showroom-corner__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--Cobalt);
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.16);
}

.hero-spotlight {
  position: fixed;
  left: 50%;
  top: var(--stage-top);
  width: calc(var(--W) * 1.72);
  height: calc(var(--H) * 1.72);
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(30, 64, 175, 0.18) 0%, rgba(217, 56, 34, 0.06) 45%, transparent 72%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.48s ease;
}

.archive-hero.is-switching .hero-spotlight {
  transform: translate(-50%, -50%) scale(1.14);
}

.kanji {
  position: fixed;
  top: var(--stage-top);
  transform: translateY(-50%);
  z-index: 1;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-family: var(--f-condensed);
  font-weight: 700;
  font-size: clamp(84px, 11.5vw, 170px);
  line-height: 0.9;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
  background-image: radial-gradient(rgba(30, 64, 175, 0.075) 1.5px, transparent 1.9px);
  background-size: 6px 6px;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.kanji--left {
  left: 1.8vw;
}

.kanji--right {
  right: 1.8vw;
}

/* Bóng đổ sàn dưới xe chính */
.floor-shadow {
  position: fixed;
  left: 50%;
  top: calc(var(--stage-top) + var(--H) * 0.49);
  width: calc(var(--W) * 1.14);
  height: 44px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(14, 22, 46, 0.4) 0%, rgba(14, 22, 46, 0.14) 50%, rgba(14, 22, 46, 0) 76%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.archive-hero.is-switching .floor-shadow {
  transform: translate(-50%, -50%) scaleX(0.92);
  opacity: 0.7;
}

/* Sân khấu 3D */
.shelf {
  position: fixed;
  inset: 0;
  z-index: 4;
  perspective: 1450px;
  perspective-origin: 50% var(--stage-top);
  cursor: grab;
  touch-action: pan-y;
}

.shelf.is-dragging {
  cursor: grabbing;
}

.stage3d {
  position: absolute;
  left: 50%;
  top: var(--stage-top);
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

/* --------------------------------------------------------------------------
   Thẻ Xe Sát Hạch Thực Tế 3D (.vcard) — Không vẽ xe hoạt hình đè lên ảnh!
   -------------------------------------------------------------------------- */
.tape {
  position: absolute;
  left: calc(var(--W) * -0.5);
  top: calc(var(--H) * -0.5);
  width: var(--W);
  height: var(--H);
  transform-style: preserve-3d;
  will-change: transform, filter;
  cursor: pointer;
}

.vcard {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #0D152C;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 22px 48px rgba(10, 16, 36, 0.36),
    0 4px 12px rgba(10, 16, 36, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px 14px;
  color: #F8F6F0;
  transition:
    border-color 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.tape.is-center .vcard {
  border-color: rgba(255, 255, 255, 0.88);
  box-shadow:
    0 28px 60px rgba(12, 22, 54, 0.46),
    0 0 0 3px rgba(30, 64, 175, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* Ảnh xe thật 100% sắc nét, không bị hình vẽ vector che khuất */
.vcard__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 54%;
  background-repeat: no-repeat;
  opacity: 0.98;
  filter: contrast(1.04) saturate(1.06);
  transform: scale(1.01);
  transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  pointer-events: none;
}

.tape.is-center .vcard__photo {
  transform: scale(1.04);
  filter: contrast(1.06) saturate(1.1);
}

.tape:hover .vcard__photo {
  transform: scale(1.08);
}

/* Lớp phủ chuyển sắc tinh tế ở mép trên & mép dưới, giữ nguyên vùng giữa trong trẻo cho chiếc xe */
.vcard__vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(8, 14, 32, 0.72) 0%,
      rgba(8, 14, 32, 0.12) 30%,
      rgba(8, 14, 32, 0.04) 62%,
      rgba(8, 14, 32, 0.82) 100%);
  pointer-events: none;
}

.vcard__shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    115deg,
    transparent 40%,
    rgba(255, 255, 255, 0.2) 48%,
    rgba(255, 255, 255, 0.03) 54%,
    transparent 62%
  );
  transform: translateX(-75%) rotate(6deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
  z-index: 1;
}

.tape.is-center .vcard__shine,
.tape:hover .vcard__shine {
  transform: translateX(65%) rotate(6deg);
}

/* Hàng trên của thẻ xe: Tên Hạng Bằng nổi bật + Thẻ Học Phí (không dùng translateZ để tránh bị cắt mép) */
.vcard__header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.vcard__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.vcard__kicker {
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(248, 246, 240, 0.9);
  text-transform: uppercase;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.75);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__code {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 2.1vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #FFFFFF;
  text-transform: uppercase;
  text-shadow:
    0 3px 12px rgba(0, 0, 0, 0.72),
    0 1.5px 0 rgba(30, 64, 175, 0.88);
}

.vcard__fee {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #12151E;
  border-radius: 999px;
  font-size: clamp(8.5px, 0.74vw, 11px);
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.28);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Thanh thông tin chân thẻ xe (Glassmorphic Bar — nằm phẳng trên mặt thẻ không bị cắt) */
.vcard__footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(10, 17, 38, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
}

.vcard__meta-col {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.vcard__vehicle-name {
  font-size: clamp(9.5px, 0.8vw, 12px);
  font-weight: 800;
  color: #FFFFFF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__vehicle-sub {
  font-size: clamp(8px, 0.65vw, 10px);
  font-weight: 500;
  color: rgba(248, 246, 240, 0.76);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vcard__open-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-size: clamp(8px, 0.65vw, 9.5px);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.22s ease;
}

.vcard__header,
.vcard__footer {
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.tape:not(.is-center) .vcard__header,
.tape:not(.is-center) .vcard__footer {
  opacity: 0;
  pointer-events: none;
}

.tape.is-center .vcard__open-pill {
  background: var(--Cobalt);
}

/* --------------------------------------------------------------------------
   Nút Mũi Tên Chuyển Hạng Bằng Đặt Cân Đối Hai Bên Dàn Xe
   -------------------------------------------------------------------------- */
.nav-arrow {
  position: fixed;
  top: var(--stage-top);
  transform: translateY(-50%);
  z-index: 14;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 15px;
  border: 1px solid rgba(18, 21, 30, 0.16);
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.88);
  backdrop-filter: blur(10px);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(18, 21, 30, 0.1);
  transition:
    background-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-arrow svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.nav-arrow__lbl {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-arrow--prev {
  left: 28px;
}

.nav-arrow--next {
  right: 28px;
}

.nav-arrow:hover {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
  box-shadow: 0 12px 28px rgba(30, 64, 175, 0.28);
}

.nav-arrow--prev:hover {
  transform: translateY(-50%) translateX(-3px);
}

.nav-arrow--next:hover {
  transform: translateY(-50%) translateX(3px);
}

/* --------------------------------------------------------------------------
   Cụm Điều Khiển & Thông Tin Hạng Bằng Cân Đối Phía Dưới (.hero-dock)
   -------------------------------------------------------------------------- */
.hero-dock {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 12;
  width: min(920px, 94vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

/* Thanh chuyển nhanh hạng bằng (Segmented Pill Bar) */
.class-switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(250, 248, 244, 0.9);
  border: 1px solid rgba(18, 21, 30, 0.14);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(18, 21, 30, 0.06);
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}

.class-switcher::-webkit-scrollbar {
  display: none;
}

.class-switcher__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.class-switcher__code {
  font-size: 11px;
  font-weight: 800;
}

.class-switcher__price {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.68;
}

.class-switcher__btn:hover {
  background: var(--Cobalt-soft);
  color: var(--Cobalt);
}

.class-switcher__btn.is-active {
  background: var(--Cobalt);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.28);
}

.class-switcher__btn.is-active .class-switcher__price {
  opacity: 0.9;
}

/* Thẻ thông tin hạng bằng đang chọn (.caption-card) — 3 cụm (Ảnh thu nhỏ + Thông tin + Hành động) */
.caption-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 18px 13px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(18, 21, 30, 0.14);
  backdrop-filter: blur(16px);
  box-shadow:
    0 14px 36px rgba(18, 21, 30, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition:
    opacity 0.22s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease;
}

.caption-card.is-transitioning {
  opacity: 0.35;
  transform: translateY(6px) scale(0.99);
  filter: blur(2px);
}

.caption-card__thumb {
  position: relative;
  width: 98px;
  height: 66px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #0D152C;
  border: 1px solid rgba(18, 21, 30, 0.15);
  box-shadow: 0 6px 16px rgba(12, 20, 44, 0.18);
}

.caption-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
}

.caption-card__index {
  position: absolute;
  right: 5px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(11, 19, 43, 0.84);
  color: #FFFFFF;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.caption-card__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.caption-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.caption-card__badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--Cobalt);
  background: var(--Cobalt-soft);
  padding: 3px 9px;
  border-radius: 6px;
}

.caption-card__fee {
  font-size: 10px;
  font-weight: 800;
  color: var(--vermilion);
  background: rgba(217, 56, 34, 0.09);
  padding: 3px 9px;
  border-radius: 6px;
}

.caption-card__slot {
  font-size: 10px;
  font-weight: 700;
  color: var(--emerald);
  background: rgba(16, 124, 65, 0.1);
  padding: 3px 9px;
  border-radius: 6px;
}

.caption-card__slot strong {
  font-weight: 800;
}

.caption__title {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(19px, 2.1vw, 26px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.caption__meta {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.caption-card__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.caption__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.22s ease,
    background-color 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease;
}

.caption__btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.22s ease;
}

.caption__btn--primary {
  background: var(--Cobalt);
  border: 1.5px solid var(--Cobalt);
  color: #fff;
  box-shadow: 0 6px 18px rgba(30, 64, 175, 0.25);
}

.caption__btn--primary:hover {
  background: var(--Cobalt-hover);
  border-color: var(--Cobalt-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.32);
}

.caption__btn--primary:hover svg {
  transform: translateX(3px);
}

.caption__btn--ghost {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid var(--rule-strong);
  color: var(--ink);
}

.caption__btn--ghost:hover {
  border-color: var(--Cobalt);
  color: var(--Cobalt);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Thước chọn nhanh các hạng bằng sát đáy màn hình (.timeline)
   -------------------------------------------------------------------------- */
.timeline {
  position: fixed;
  left: 44px;
  right: 44px;
  bottom: 6px;
  height: 24px;
  z-index: 10;
}

.timeline__line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 1px;
  background: var(--rule-strong);
}

.timeline__ticks {
  position: relative;
  width: 100%;
  height: 100%;
}

.tl-tick {
  position: absolute;
  bottom: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  border: 0;
  background: none;
  padding: 2px 6px;
  cursor: pointer;
  color: var(--ink);
}

.tl-tick span {
  font-size: 9px;
  font-weight: 700;
  opacity: 0.45;
  transition: opacity 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.tl-tick i {
  display: block;
  width: 1.5px;
  height: 4px;
  background: var(--ink);
  opacity: 0.25;
}

.tl-tick.is-active span {
  opacity: 1;
  color: var(--Cobalt);
}

.tl-tick.is-active i {
  height: 8px;
  opacity: 1;
  background: var(--Cobalt);
}

.timeline__dot {
  position: absolute;
  bottom: 2px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--Cobalt);
  box-shadow: 0 0 0 4px rgba(30, 64, 175, 0.18);
  transform: translateX(-50%);
  transition: left 0.48s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

/* Con trỏ tròn khi rê chuột lên xe chính */
.cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  width: 60px;
  height: 60px;
  margin-left: -30px;
  margin-top: -30px;
  border-radius: 50%;
  background: var(--Cobalt);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.36);
  transform: translate3d(-200px, -200px, 0) scale(0);
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.cursor span {
  font-size: 9px;
  font-weight: 800;
}

.cursor.is-on {
  transform: translate3d(var(--cx, -200px), var(--cy, -200px), 0) scale(1);
}

/* ==========================================================================
   TRANG CHI TIẾT HẠNG BẰNG (.detail#detailSheet) — BỐ CỤC SHOWROOM RÕ RÀNG
   ========================================================================== */
.detail {
  position: fixed;
  inset: 0;
  z-index: 30;
  background:
    radial-gradient(ellipse 85% 55% at 50% 0%, rgba(255, 255, 255, 0.96) 0%, transparent 72%),
    var(--paper-sheet);
  display: flex;
  flex-direction: column;
  clip-path: inset(50% 50% 50% 50% round 16px);
  pointer-events: none;
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
}

.detail.is-open {
  pointer-events: auto;
  visibility: visible;
}

/* Phông nền ánh sáng mờ theo ảnh xe đang chọn */
.detail__backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 440px;
  background-size: cover;
  background-position: center 50%;
  filter: blur(56px) saturate(1.35);
  opacity: 0.16;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 100%);
}

/* Thanh Header cố định của trang chi tiết */
.detail__topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 32px;
  background: rgba(248, 246, 240, 0.94);
  border-bottom: 1px solid var(--rule-strong);
  backdrop-filter: blur(14px);
}

.detail__close {
  flex-shrink: 0;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 11px;
  background: #FFFFFF;
}

/* Thanh chuyển nhanh giữa các hạng bằng nằm ngay giữa Header của trang chi tiết */
.detail__switcher {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
  box-shadow: 0 4px 14px rgba(18, 21, 30, 0.04);
}

.detail__switcher::-webkit-scrollbar {
  display: none;
}

.detail__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease;
}

.detail__pill-code {
  font-size: 11px;
  font-weight: 800;
}

.detail__pill-price {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.72;
}

.detail__pill:hover {
  background: var(--Cobalt-soft);
  color: var(--Cobalt);
}

.detail__pill.is-active {
  background: var(--Cobalt);
  color: #fff;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.26);
}

.detail__pill.is-active .detail__pill-price {
  opacity: 0.92;
}

.detail__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 800;
}

.detail__brand-badge {
  background: var(--Cobalt);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10.5px;
}

/* Khung 2 cột cân đối chính giữa màn hình */
.detail__container {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 24px;
  align-items: start;
  transition:
    opacity 0.22s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.22s ease;
}

.detail__container.is-switching {
  opacity: 0.25;
  transform: translateY(6px) scale(0.992);
  filter: blur(2px);
}

/* Cột hình ảnh xe & chỉ số nổi bật */
.detail__right {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail__poster {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(12, 20, 44, 0.22);
  border: 1.5px solid rgba(18, 21, 30, 0.16);
  background: #0B132B;
}

.detail__poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.detail__poster:hover .detail__poster-img {
  transform: scale(1.04);
}

.detail__poster-shine {
  position: absolute;
  inset: -40% -60%;
  background: linear-gradient(
    115deg,
    transparent 42%,
    rgba(255, 255, 255, 0.16) 49%,
    transparent 56%
  );
  transform: translateX(-65%) rotate(6deg);
  transition: transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.detail__poster:hover .detail__poster-shine {
  transform: translateX(65%) rotate(6deg);
}

.detail__poster-overlay {
  position: absolute;
  inset: 0;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #F8F6F0;
  background:
    linear-gradient(180deg,
      rgba(8, 14, 32, 0.68) 0%,
      rgba(8, 14, 32, 0.04) 34%,
      rgba(8, 14, 32, 0.06) 58%,
      rgba(8, 14, 32, 0.88) 100%);
  pointer-events: none;
}

.detail__poster-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.detail__poster-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(11, 19, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  font-size: 10px;
}

.detail__poster-plate {
  padding: 4px 11px;
  border-radius: 6px;
  background: #F8F6F0;
  color: #12151E;
  border: 1.5px solid #12151E;
  font-family: var(--f-condensed);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.detail__poster-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.detail__poster-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail__poster-kicker {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  color: rgba(248, 246, 240, 0.82);
}

.detail__poster-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.detail__poster-code {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.05;
  color: #FFFFFF;
}

.detail__stamp {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--vermilion);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.detail__poster-name {
  font-size: 12px;
  font-weight: 600;
  color: rgba(248, 246, 240, 0.92);
}

.detail__poster-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.detail__poster-index {
  padding: 5px 9px;
  border-radius: 7px;
  background: rgba(11, 19, 43, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #F8F6F0;
  font-size: 10px;
  font-weight: 800;
}

.detail__nav-btn {
  padding: 7px 13px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(11, 19, 43, 0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background-color 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.detail__nav-btn:hover {
  background: var(--Cobalt);
  border-color: #fff;
  transform: translateY(-1.5px);
}

/* 3 ô chỉ số nổi bật ngay dưới ảnh xe */
.detail__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail__metric {
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 6px 16px rgba(18, 21, 30, 0.04);
  display: flex;
  align-items: center;
  gap: 11px;
}

.detail__metric--highlight {
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.09) 0%, rgba(255, 255, 255, 0.98) 100%);
  border-color: rgba(30, 64, 175, 0.36);
}

.detail__metric-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--Cobalt-soft);
  color: var(--Cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail__metric--highlight .detail__metric-icon {
  background: var(--Cobalt);
  color: #FFFFFF;
}

.detail__metric-icon svg,
.detail__metric-icon .ic,
.detail__metric-icon .lp-icon {
  width: 17px;
  height: 17px;
}

.detail__metric-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.detail__metric-lbl {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
}

.detail__metric-val {
  font-family: var(--f-display);
  font-size: clamp(14px, 1.3vw, 17.5px);
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detail__metric-val--accent {
  color: var(--Cobalt);
}

/* 4 Ô tiêu chuẩn đào tạo phía dưới khung xe */
.detail__perks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail__perk {
  padding: 12px 14px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  box-shadow: 0 4px 14px rgba(18, 21, 30, 0.03);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.detail__perk:hover {
  transform: translateY(-2px);
  border-color: var(--Cobalt);
}

.detail__perk-num {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--Cobalt-soft);
  color: var(--Cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detail__perk-num svg,
.detail__perk-num .ic,
.detail__perk-num .lp-icon {
  width: 15px;
  height: 15px;
}

.detail__perk strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 2px;
}

.detail__perk p {
  font-size: 11.5px;
  line-height: 1.42;
  color: var(--muted);
}

/* Cột thông số chi tiết & đăng ký */
.detail__left {
  display: flex;
  flex-direction: column;
}

.detail__card {
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  padding: 24px 26px;
  box-shadow: 0 16px 40px rgba(18, 21, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail__card-top {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule);
}

.detail__card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.detail__badge-code {
  background: var(--Cobalt);
  color: #fff;
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}

.detail__badge-guarantee {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 124, 65, 0.1);
  color: var(--emerald);
  padding: 5px 11px;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 800;
}

.detail__badge-guarantee svg,
.detail__badge-guarantee .ic,
.detail__badge-guarantee .lp-icon {
  width: 13px;
  height: 13px;
}

.detail__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.detail__meta {
  color: var(--Cobalt);
  font-size: 11px;
  font-weight: 800;
}

/* Bảng thông số rõ ràng, mỗi mục là 1 ô thông tin dễ nhìn */
.detail__specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail__spec {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.detail__spec:hover {
  border-color: rgba(30, 64, 175, 0.35);
  background: #FAF8F3;
}

.detail__spec:nth-child(1),
.detail__spec:nth-child(2) {
  grid-column: 1 / -1;
}

.detail__spec dt {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--Cobalt);
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.detail__spec dt svg,
.detail__spec dt .ic,
.detail__spec dt .lp-icon {
  width: 13px;
  height: 13px;
}

.detail__spec dd {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
}

/* Lịch sát hạch sắp tới của hạng bằng này trong thẻ chi tiết */
.detail__exams {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 15px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(30, 64, 175, 0.05) 0%, rgba(245, 242, 235, 0.5) 100%);
  border: 1px solid rgba(30, 64, 175, 0.18);
}

.detail__exams-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail__exams-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--Cobalt);
  font-size: 10px;
  font-weight: 800;
}

.detail__exams-link {
  border: 0;
  background: none;
  color: var(--Cobalt);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: underline;
}

.detail__exam-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.detail__exam-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #FFFFFF;
  border: 1px solid var(--rule);
}

.detail__exam-date strong {
  display: block;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
}

.detail__exam-date span {
  font-size: 11px;
  color: var(--muted);
}

.detail__exam-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.detail__exam-slots {
  font-size: 11px;
  color: var(--ink-soft);
}

.detail__exam-slots strong {
  color: var(--Cobalt);
  font-weight: 800;
}

.detail__exam-status {
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
}

.detail__exam-status--ok {
  background: rgba(16, 124, 65, 0.12);
  color: var(--emerald);
}

.detail__exam-status--today {
  background: rgba(217, 56, 34, 0.12);
  color: var(--vermilion);
}

.detail__exam-status--full {
  background: rgba(94, 100, 116, 0.14);
  color: var(--muted);
}

.detail__exam-empty {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  color: var(--ink-soft);
}

.detail__exam-empty strong {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--emerald);
  white-space: nowrap;
}

.detail__card-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px;
}

.detail__contactbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  padding: 10px 14px;
  background: var(--Cobalt-soft);
  border-left: 3.5px solid var(--Cobalt);
  border-radius: 0 10px 10px 0;
  font-size: 11px;
  color: var(--ink);
}

.detail__contactbar a {
  color: var(--Cobalt);
  font-weight: 800;
  text-decoration: underline;
}

.detail__hotline-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail__hotline-zalo {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: #0068FF;
  color: #FFFFFF !important;
  font-size: 9.5px;
  font-weight: 800;
  text-decoration: none !important;
}

.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail__cta {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
  padding: 13px 20px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 8px 20px rgba(30, 64, 175, 0.24);
  flex: 1 1 auto;
}

.detail__cta--zalo {
  background: #0068FF;
  border-color: #0068FF;
  color: #fff;
  box-shadow: 0 8px 20px rgba(0, 104, 255, 0.22);
  flex: 0 1 auto;
}

.detail__cta--zalo:hover {
  background: #0052CC;
  border-color: #0052CC;
}

.detail__cta--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--rule-strong);
  box-shadow: none;
  flex: 0 1 auto;
}

/* Biểu tượng chữ Zalo chuẩn sắc nét */
.zalo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 5px;
  background: #FFFFFF;
  color: #0068FF;
  font-family: var(--f-display);
  font-size: 9.5px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}

.archive-fab__badge--zalo .zalo-mark {
  background: transparent;
  padding: 0;
  font-size: 11.5px;
}

/* Khối rộng toàn màn hình bên dưới 2 cột Chi Tiết: Lộ trình 5 bước & FAQ */
.detail__block--wide {
  grid-column: 1 / -1;
  background: #FFFFFF;
  border: 1px solid var(--rule-strong);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: 0 12px 32px rgba(18, 21, 30, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail__block-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}

.detail__block-kicker {
  color: var(--Cobalt);
  font-size: 10px;
  font-weight: 800;
  margin-bottom: 4px;
}

.detail__block-title {
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 900;
  color: var(--ink);
}

.detail__road {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.detail__road-step {
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--paper-sheet);
  border: 1px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.detail__road-step:hover {
  transform: translateY(-2px);
  border-color: var(--Cobalt);
}

.detail__road-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.detail__road-idx {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--Cobalt);
  color: #FFFFFF;
  font-size: 9.5px;
  font-weight: 800;
}

.detail__road-meta {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--vermilion);
  background: rgba(217, 56, 34, 0.09);
  padding: 3px 8px;
  border-radius: 999px;
}

.detail__road-step h4 {
  font-family: var(--f-display);
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}

.detail__road-step p {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.detail__faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail__faq-item {
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--paper-sheet);
  padding: 13px 16px;
}

.detail__faq-item[open] {
  border-color: var(--Cobalt);
  background: #FFFFFF;
}

.detail__faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.detail__faq-item summary::-webkit-details-marker {
  display: none;
}

.detail__faq-item p {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* --------------------------------------------------------------------------
   Ngăn Hồ Sơ Mở Rộng (Archive Drawer — Bảng Giá, Lộ Trình, Lịch Thi, Đăng Ký)
   -------------------------------------------------------------------------- */
.archive-drawer {
  position: fixed;
  inset: 0;
  z-index: 32;
  background: var(--paper-sheet);
  display: flex;
  flex-direction: column;
  clip-path: inset(100% 0 0 0);
  transition: clip-path 0.68s cubic-bezier(0.76, 0, 0.18, 1);
  pointer-events: none;
}

.archive-drawer.is-open {
  clip-path: inset(0 0 0 0);
  pointer-events: auto;
}

.archive-drawer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  border-bottom: 1px solid var(--rule);
  background: rgba(245, 242, 235, 0.94);
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.archive-drawer__tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.archive-drawer__tab {
  border: 1.5px solid transparent;
  border-radius: 8px;
  background: none;
  padding: 8px 14px;
  cursor: pointer;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.22s ease, border-color 0.22s ease, background-color 0.22s ease;
}

.archive-drawer__tab:hover {
  color: var(--Cobalt);
  background: var(--Cobalt-soft);
}

.archive-drawer__tab.is-active {
  color: #fff;
  border-color: var(--Cobalt);
  background: var(--Cobalt);
}

.archive-drawer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.archive-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 36px 40px 80px;
  scroll-behavior: smooth;
}

.drawer-panel {
  display: none;
  max-width: 1200px;
  margin: 0 auto;
}

.drawer-panel.is-active {
  display: block;
  animation: panelFadeIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes itemStaggerIn {
  from { opacity: 0; transform: translateY(20px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.archive-kicker {
  color: var(--vermilion);
  margin-bottom: 6px;
  font-weight: 800;
}

.archive-heading {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(26px, 3.4vw, 42px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--Cobalt);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.archive-lead {
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}

.archive-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
}

/* Form Đăng Ký Tư Vấn */
.archive-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 40px;
  align-items: start;
}

.archive-slotbox {
  margin: 20px 0;
  padding: 16px 18px;
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  background: var(--card-bg);
}

.archive-slotbox__head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.archive-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(18, 21, 30, 0.1);
  overflow: hidden;
}

.archive-meter__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--Cobalt) 0%, var(--vermilion) 100%);
}

.archive-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.archive-points li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  font-weight: 500;
}

.archive-points .lp-icon {
  width: 18px;
  height: 18px;
  color: var(--Cobalt);
  flex-shrink: 0;
  margin-top: 2px;
}

.archive-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.archive-contact__meta {
  width: 100%;
  color: var(--muted);
  margin-top: 4px;
}

.archive-form {
  padding: 28px;
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: 0 16px 36px rgba(18, 21, 30, 0.06);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.archive-form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.archive-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.archive-field input,
.archive-field select,
.archive-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--rule-strong);
  border-radius: 8px;
  background: var(--paper-sheet);
  font-size: 14px;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-field input:focus,
.archive-field select:focus,
.archive-field textarea:focus {
  border-color: var(--Cobalt);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.14);
}

.archive-form__submit {
  width: 100%;
  padding: 14px 18px;
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
  font-size: 12px;
}

.archive-form__note {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.archive-form__status {
  font-size: 13px;
  color: var(--vermilion);
  text-align: center;
  min-height: 18px;
}

.archive-form__done {
  padding: 32px;
  border: 1.5px solid var(--Cobalt);
  border-radius: 16px;
  background: rgba(30, 64, 175, 0.05);
  text-align: center;
}

.archive-form__done h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--Cobalt);
  margin: 8px 0;
}

/* Danh mục Bảng Học Phí Có Ảnh Xe Thật */
.archive-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.archive-chip.is-active {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
}

.archive-courses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.archive-course {
  border: 1px solid var(--rule-strong);
  border-radius: 16px;
  background: var(--card-bg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: itemStaggerIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 60ms);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.archive-course:hover {
  transform: translateY(-5px);
  border-color: var(--Cobalt);
  box-shadow: 0 18px 36px rgba(30, 64, 175, 0.12);
}

.archive-course__media {
  position: relative;
  height: 172px;
  background: #0B132B;
  overflow: hidden;
}

.archive-course__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
  display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-course:hover .archive-course__img {
  transform: scale(1.07);
}

.archive-course__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 14, 32, 0.62) 0%, rgba(8, 14, 32, 0.06) 45%, rgba(8, 14, 32, 0.72) 100%);
  pointer-events: none;
}

.archive-course__top {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.archive-course__badge {
  background: var(--Cobalt);
  color: #fff;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
}

.archive-course__dur {
  background: rgba(11, 19, 43, 0.76);
  color: #fff;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
}

.archive-course__plate {
  position: absolute;
  bottom: 10px;
  right: 12px;
  z-index: 2;
  background: #F8F6F0;
  color: #12151E;
  border: 1.5px solid #12151E;
  border-radius: 4px;
  padding: 2px 8px;
  font-family: var(--f-condensed);
  font-size: 11px;
  font-weight: 700;
}

.archive-course__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.archive-course__name {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
}

.archive-course__price {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 24px;
  color: var(--Cobalt);
}

.archive-course__price small {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.archive-course__desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

.archive-course__req {
  font-size: 12px;
  color: var(--muted);
}

.archive-course__actions {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  gap: 8px;
}

.archive-course__btn {
  flex: 1;
  text-align: center;
  padding: 9px 10px;
  font-size: 10px;
}

.archive-course__btn--solid {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
}

/* Lộ Trình 5 Bước */
.archive-roadmap {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.archive-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 20px 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--card-bg);
  align-items: start;
  animation: itemStaggerIn 0.48s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 70ms);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.archive-step:hover {
  transform: translateX(5px);
  border-color: var(--Cobalt);
}

.archive-step__index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 7px;
  background: var(--Cobalt-soft);
  color: var(--Cobalt);
  font-size: 11.5px;
  font-weight: 800;
}

.archive-step__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.archive-step__head h3 {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 800;
}

.archive-step__meta {
  color: var(--vermilion);
  background: rgba(217, 56, 34, 0.08);
  padding: 3px 9px;
  border-radius: 999px;
}

.archive-step__body p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* Bảng Lịch Thi Sát Hạch */
.archive-tablewrap {
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--card-bg);
  overflow-x: auto;
}

.archive-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.archive-table th,
.archive-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

.archive-table tbody tr {
  animation: itemStaggerIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 55ms);
}

.archive-table tbody tr:hover {
  background: rgba(30, 64, 175, 0.04);
}

.archive-table td small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}

.archive-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid currentColor;
}

.archive-status--ok {
  color: var(--Cobalt);
  background: var(--Cobalt-soft);
}

.archive-status--today {
  color: var(--vermilion);
  background: rgba(217, 56, 34, 0.1);
}

.archive-status--full {
  color: var(--muted);
}

.archive-table__btn--solid {
  background: var(--Cobalt);
  border-color: var(--Cobalt);
  color: #fff;
}

.archive-community,
.archive-empty {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--card-bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.archive-community h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 21px;
  color: var(--Cobalt);
  margin: 4px 0;
}

/* Câu Hỏi Thường Gặp (FAQ) */
.archive-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.archive-faq__item {
  border: 1px solid var(--rule-strong);
  border-radius: 14px;
  background: var(--card-bg);
  padding: 18px 22px;
  animation: itemStaggerIn 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--stagger, 0) * 55ms);
}

.archive-faq__item[open] {
  border-color: var(--Cobalt);
  box-shadow: 0 10px 24px rgba(30, 64, 175, 0.08);
}

.archive-faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 15.5px;
}

.archive-faq__item summary::-webkit-details-marker {
  display: none;
}

.archive-faq__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--Cobalt-soft);
  color: var(--Cobalt);
  font-size: 16px;
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.archive-faq__item[open] .archive-faq__icon {
  transform: rotate(45deg);
  background: var(--Cobalt);
  color: #fff;
}

.archive-faq__answer {
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-soft);
}

/* Nút Nổi Zalo Góc Phải Dưới (Bình thường thu gọn thành logo tròn, rê chuột vào tự kéo dài ra & hiện danh sách nhiều số Zalo) */
.archive-fab {
  position: fixed;
  right: 20px;
  bottom: 34px;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.archive-fab__menu {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.26s ease;
}

.archive-fab:hover .archive-fab__menu,
.archive-fab:focus-within .archive-fab__menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.archive-fab__subitem {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1.5px solid rgba(0, 104, 255, 0.28);
  box-shadow: 0 10px 26px rgba(12, 22, 54, 0.16);
  backdrop-filter: blur(12px);
  color: var(--ink);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.archive-fab__subitem:hover {
  transform: translateX(-3px);
  border-color: #0068FF;
  box-shadow: 0 12px 28px rgba(0, 104, 255, 0.28);
}

.archive-fab__subitem .zalo-mark {
  background: #0068FF;
  color: #FFFFFF;
  padding: 4px 7px;
  border-radius: 999px;
  font-size: 9.5px;
}

.archive-fab__subtext {
  display: flex;
  flex-direction: column;
  line-height: 1.18;
}

.archive-fab__subtext strong {
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}

.archive-fab__subtext small {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.archive-fab:hover .archive-fab__item--zalo,
.archive-fab__item--zalo:hover,
.archive-fab__item--zalo:focus-visible {
  max-width: 268px;
  padding: 6px 18px 6px 6px;
  gap: 10px;
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(0, 104, 255, 0.52),
    0 0 0 6px rgba(0, 104, 255, 0.22);
}

.archive-fab:hover .archive-fab__text {
  max-width: 205px;
  opacity: 1;
  transform: translateX(0);
}

.archive-fab__item--zalo {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0;
  max-width: 52px;
  height: 52px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0068FF 0%, #0052CC 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #FFFFFF;
  box-shadow:
    0 10px 26px rgba(0, 104, 255, 0.42),
    0 0 0 4px rgba(0, 104, 255, 0.15);
  cursor: pointer;
  overflow: hidden;
  transition:
    max-width 0.38s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    gap 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

.archive-fab__item--zalo:hover,
.archive-fab__item--zalo:focus-visible {
  max-width: 248px;
  padding: 6px 18px 6px 6px;
  gap: 10px;
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(0, 104, 255, 0.52),
    0 0 0 6px rgba(0, 104, 255, 0.22);
}

.archive-fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  animation: zaloFabPulse 2.4s infinite cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

@keyframes zaloFabPulse {
  0% {
    opacity: 0.75;
  }
  70% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

.archive-fab__badge {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.archive-fab__badge--zalo {
  background: #FFFFFF;
  color: #0068FF;
  box-shadow: 0 3px 10px rgba(0, 35, 95, 0.25);
}

.archive-fab__badge--zalo svg,
.archive-fab__badge--zalo .ic,
.archive-fab__badge--zalo .lp-icon {
  width: 22px;
  height: 22px;
}

.archive-fab__online {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #10B981;
  border: 2px solid #0058D6;
}

.archive-fab__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.18;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateX(6px);
  transition:
    max-width 0.36s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.25s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.archive-fab__item--zalo:hover .archive-fab__text,
.archive-fab__item--zalo:focus-visible .archive-fab__text {
  max-width: 190px;
  opacity: 1;
  transform: translateX(0);
}

.archive-fab__text strong {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.archive-fab__text small {
  font-size: 10px;
  font-weight: 600;
  opacity: 0.86;
  white-space: nowrap;
}

/* ==========================================================================
   RESPONSIVE ĐA THIẾT BỊ (Tablet <= 1024px, Mobile <= 767px & Màn hình thấp)
   ========================================================================== */
@media (max-width: 1100px) {
  .topbar__meta-addr,
  .showroom-corner {
    display: none;
  }
}

@media (max-width: 1024px) {
  :root {
    --stage-top: 44%;
    --W: min(58vw, 440px);
    --H: min(calc(var(--W) * 0.63), 30vh);
    --SW: calc(var(--H) * 0.25);
  }

  .topbar {
    width: calc(100vw - 24px);
    padding: 6px 12px;
  }

  .topbar__link,
  .timeline {
    display: none;
  }

  .burger {
    display: flex;
  }

  .hero-head {
    top: 62px;
  }

  .hero-head__title {
    font-size: clamp(18px, 2.5vw, 24px);
  }

  .hero-dock {
    bottom: 16px;
  }

  .detail__topbar {
    padding: 10px 16px;
    gap: 10px;
  }

  .detail__brand {
    display: none;
  }

  .detail__container {
    grid-template-columns: 1fr;
    padding: 18px 18px 48px;
    gap: 18px;
  }

  .detail__faq {
    grid-template-columns: 1fr;
  }

  .archive-courses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .archive-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  :root {
    --stage-top: 45%;
    --W: min(82vw, 340px);
    --H: min(calc(var(--W) * 0.62), 25.5svh);
    --SW: calc(var(--H) * 0.24);
  }

  .topbar {
    top: 8px;
    width: calc(100vw - 16px);
    height: 44px;
    padding: 5px 10px;
    gap: 8px;
  }

  /* Ẩn cụm SĐT/địa chỉ trên thanh topbar ở mobile để không bao giờ đè lên nút ĐĂNG KÝ TƯ VẤN */
  .topbar__meta,
  .topbar__link,
  .caption-card__slot,
  .caption-card__thumb,
  .class-switcher__price,
  .timeline {
    display: none !important;
  }

  .topbar__name {
    display: inline-block;
    max-width: 138px;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 10.5px;
  }

  .topbar__cta {
    padding: 6px 10px;
    font-size: 9.5px;
  }

  .burger {
    display: flex;
    width: 26px;
  }

  .hero-head {
    top: 58px;
    width: calc(100vw - 20px);
    gap: 4px;
  }

  .hero-head__kicker {
    padding: 3px 10px;
    font-size: 8.5px;
  }

  .hero-head__title {
    font-size: 16.5px;
    line-height: 1.18;
  }

  .hero-head__chips {
    gap: 5px;
  }

  .hero-chip {
    padding: 3px 8px;
    font-size: 9.5px;
  }

  .hero-chip:nth-child(3) {
    display: none;
  }

  .kanji {
    font-size: 52px;
    opacity: 0.25;
  }

  .vcard {
    padding: 10px 12px 9px;
    border-radius: 14px;
  }

  .vcard__code {
    font-size: 18px;
  }

  .vcard__fee {
    padding: 3px 8px;
    font-size: 8.5px;
  }

  .vcard__footer {
    padding: 5px 8px;
    border-radius: 8px;
  }

  .vcard__open-pill {
    display: none;
  }

  .nav-arrow {
    padding: 8px 9px;
  }

  .nav-arrow__lbl {
    display: none;
  }

  .nav-arrow--prev {
    left: 6px;
  }

  .nav-arrow--next {
    right: 6px;
  }

  .hero-dock {
    bottom: 10px;
    width: calc(100vw - 20px);
    gap: 6px;
  }

  .class-switcher {
    padding: 4px;
    gap: 4px;
    max-width: 100%;
  }

  .class-switcher__btn {
    padding: 5px 11px;
  }

  .class-switcher__code {
    font-size: 10.5px;
  }

  .caption-card {
    flex-direction: column;
    align-items: stretch;
    padding: 10px 12px;
    gap: 6px;
    border-radius: 14px;
  }

  .caption-card__top {
    gap: 6px;
  }

  .caption-card__badge,
  .caption-card__fee {
    font-size: 9px;
    padding: 2.5px 7px;
  }

  .caption__title {
    font-size: 16px;
    line-height: 1.2;
  }

  .caption__meta {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .caption-card__actions {
    width: 100%;
    gap: 8px;
  }

  .caption__btn {
    flex: 1;
    padding: 9px 10px;
    font-size: 10.5px;
  }

  /* Nút Zalo nằm ngay phía trên .hero-dock ở góc phải, tuyệt đối không che nút Đăng ký Hạng */
  .archive-fab {
    right: 12px;
    bottom: 174px;
    transition: bottom 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  }

  main:has(.detail.is-open) ~ .archive-fab,
  main:has(.archive-drawer.is-open) ~ .archive-fab {
    bottom: 18px;
  }

  .archive-fab__item--zalo {
    max-width: 44px;
    height: 44px;
    padding: 5px;
  }

  .archive-fab__badge {
    width: 32px;
    height: 32px;
  }

  .archive-fab__badge--zalo svg,
  .archive-fab__badge--zalo .ic,
  .archive-fab__badge--zalo .lp-icon {
    width: 18px;
    height: 18px;
  }

  /* Trang chi tiết hạng bằng trên mobile */
  .detail__topbar {
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .detail__close {
    padding: 6px 11px;
    font-size: 10px;
  }

  .detail__switcher {
    order: 2;
    width: 100%;
  }

  .detail__pill-price {
    display: none;
  }

  .detail__container {
    padding: 12px 12px 72px;
    gap: 14px;
  }

  .detail__poster-overlay {
    padding: 12px 14px;
  }

  .detail__poster-code {
    font-size: 22px;
  }

  .detail__poster-index {
    display: none;
  }

  .detail__nav-btn {
    padding: 6px 10px;
    font-size: 9.5px;
  }

  .detail__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .detail__metric {
    padding: 9px 10px;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
  }

  .detail__metric-icon {
    width: 26px;
    height: 26px;
  }

  .detail__metric-lbl {
    font-size: 8.5px;
  }

  .detail__metric-val {
    font-size: 13px;
  }

  .detail__perks,
  .detail__specs,
  .detail__faq,
  .archive-form__row,
  .archive-courses {
    grid-template-columns: 1fr;
  }

  .detail__card,
  .detail__block--wide {
    padding: 18px 15px;
    gap: 14px;
  }

  .detail__title {
    font-size: 22px;
  }

  .detail__actions {
    flex-direction: column;
  }

  .detail__cta {
    width: 100%;
    justify-content: center;
  }

  .archive-drawer__bar {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .archive-drawer__brand {
    display: none;
  }

  .archive-drawer__body {
    padding: 18px 12px 72px;
  }

  .archive-step {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-height: 740px) and (min-width: 768px) {
  :root {
    --stage-top: 43%;
    --H: min(29vh, 21vw);
    --W: calc(var(--H) * 1.56);
  }

  .hero-head {
    top: 62px;
    gap: 4px;
  }

  .hero-head__title {
    font-size: clamp(18px, 1.9vw, 24px);
  }

  .hero-dock {
    bottom: 24px;
    gap: 6px;
  }

  .caption-card {
    padding: 10px 16px 10px 12px;
  }
}
