/* VinhXD 3.3 – XD Màu xe / Giá xe kèm KM / Hero xe. Kiểu "Xanh · Kính mờ" (giống mẫu ảnh báo giá xanh-kinh của hub).
 * Màu chỉnh ở tab Style → "Màu chủ đạo" (biến --vxg-*). Không dùng !important để Style ghi đè được. */
.vxg {
  --vxg-ink: #0f2547; --vxg-muted: #5b6b82; --vxg-sub: #3d4f6b; --vxg-line: #dce5f0;
  --vxg-acc: #0e3a7a; --vxg-off: #0e8a4f; --vxg-chip: #dce8f6; --vxg-band: #e3edf9;
  --vxg-ok-bg: #d3f0e0; --vxg-ok: #0b6e3f; --vxg-foot: #c9d5e5;
  --vxg-card: rgba(255, 255, 255, .82); --vxg-shadow: 0 10px 30px rgba(15, 37, 71, .08);
  --vxg-sw: 40px;
  color: var(--vxg-ink); font-variant-numeric: tabular-nums; line-height: 1.45;
}
.vxg *, .vxg *::before, .vxg *::after { box-sizing: border-box; }
.vxg [hidden] { display: none; }

/* ---------- ảnh xe ---------- */
.vxg-stage { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; }
.vxg-car { position: relative; z-index: 1; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; transition: opacity .25s ease; }
.vxg-car.is-fade { opacity: 0; }
.vxg-shadow { position: absolute; left: 9%; right: 9%; bottom: 3%; height: 12%; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(15, 37, 71, .24) 0, rgba(15, 37, 71, 0) 70%); }

/* ---------- chấm màu ---------- */
.vxg-sws { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vxg-sw { width: calc(var(--vxg-sw) + 8px); height: calc(var(--vxg-sw) + 8px); padding: 3px; border-radius: 50%;
  border: 2px solid transparent; background: #fff; box-shadow: 0 0 0 1px var(--vxg-foot); cursor: pointer;
  transition: border-color .2s, transform .2s; }
.vxg-sw:hover { transform: translateY(-2px); }
.vxg-sw.on { border-color: var(--vxg-acc); box-shadow: none; }
.vxg-sw:focus-visible { outline: 2px solid var(--vxg-acc); outline-offset: 2px; }
.vxg-sw i, .vxg-ring i { display: block; width: 100%; height: 100%; border-radius: 50%;
  background: linear-gradient(180deg, var(--c2, #ccc) 0 50%, var(--c1, #ccc) 50% 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.vxg-cname { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.vxg-cname b { font-weight: 600; }
.vxg-ring { width: 26px; height: 26px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--vxg-foot); flex: none; }
.vxg-cplus { font-size: .85em; font-weight: 600; color: var(--vxg-muted); background: var(--vxg-chip); padding: 2px 10px; border-radius: 999px; }

/* ---------- phiên bản ---------- */
.vxg-vers { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.vxg-ver { flex: 1 1 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  min-height: 56px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--vxg-line); background: var(--vxg-card);
  color: var(--vxg-ink); font: inherit; cursor: pointer; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.vxg-ver span { font-weight: 600; }
.vxg-ver b { font-size: .9em; font-weight: 500; color: var(--vxg-muted); }
.vxg-ver:hover { border-color: var(--vxg-acc); }
.vxg-ver.on { border: 2px solid var(--vxg-acc); padding: 9px 13px; box-shadow: var(--vxg-shadow); }
.vxg-ver.on b { color: var(--vxg-acc); }

/* ---------- thẻ giá ---------- */
.vxg-card { background: var(--vxg-card); border-radius: 24px; box-shadow: var(--vxg-shadow); overflow: hidden;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: box-shadow .2s, transform .2s; }
.vxg-base { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 24px; padding: 22px 26px 14px; }
.vxg-base small { display: block; font-size: .85em; color: var(--vxg-muted); }
.vxg-base b { display: block; font-size: 1.45em; font-weight: 700; }
.vxg-kms { margin: 0 26px; border-top: 1px solid var(--vxg-line); padding: 8px 0 10px; }
.vxg-km-h { font-size: .8em; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--vxg-muted); padding: 8px 0 4px; }
.vxg-km { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; color: var(--vxg-off); }
.vxg-km input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.vxg-ck { width: 20px; height: 20px; border-radius: 6px; border: 2px solid var(--vxg-foot); background: #fff; position: relative; transition: background-color .15s, border-color .15s; }
.vxg-km.on .vxg-ck { background: var(--vxg-off); border-color: var(--vxg-off); }
.vxg-km.on .vxg-ck::after { content: ""; position: absolute; left: 5px; top: 1px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.vxg-km input:focus-visible + .vxg-ck { outline: 2px solid var(--vxg-acc); outline-offset: 2px; }
.vxg-km-n { font-weight: 500; }
.vxg-km-a { font-weight: 700; white-space: nowrap; }
.vxg-km:not(.on) { color: var(--vxg-muted); }
.vxg-km:not(.on) .vxg-km-a { text-decoration: line-through; opacity: .7; }
.vxg-band { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 18px 26px 20px; background: var(--vxg-band); }
.vxg-band-l { font-size: .85em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--vxg-acc); }
.vxg-save { font-size: .85em; font-weight: 700; color: var(--vxg-ok); background: var(--vxg-ok-bg); padding: 3px 12px; border-radius: 999px; }
.vxg-net { margin-left: auto; font-size: 2em; font-weight: 800; color: var(--vxg-acc); line-height: 1.1; letter-spacing: -.01em; }
.vxg-note { font-size: .85em; color: var(--vxg-muted); margin: 10px 4px 0; }

/* ---------- hero ---------- */
.vxg-hero { position: relative; padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 48px); border-radius: 0; overflow: hidden; }
.vxg-nen-tron { background: #f3f7fb; }
.vxg-nen-kinh { background-color: #eef3fa;
  background-image:
    radial-gradient(circle at 92% 8%, rgba(158, 194, 242, .75) 0, rgba(158, 194, 242, .62) 22%, rgba(158, 194, 242, 0) 46%),
    radial-gradient(circle at 2% 52%, rgba(184, 227, 220, .7) 0, rgba(184, 227, 220, .58) 18%, rgba(184, 227, 220, 0) 40%),
    radial-gradient(circle at 92% 98%, rgba(199, 207, 255, .7) 0, rgba(199, 207, 255, .58) 20%, rgba(199, 207, 255, 0) 44%); }
.vxg-hero-in { max-width: 1200px; margin: 0 auto; position: relative; }
.vxg-hero-top { display: grid; grid-template-columns: minmax(0, 45%) minmax(0, 1fr); gap: 24px; align-items: center; }
.vxg-chip { display: inline-block; background: var(--vxg-chip); color: var(--vxg-acc); font-size: .8em; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 16px; border-radius: 999px; margin-bottom: 14px; }
.vxg .vxg-title { margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); font-weight: 800; line-height: .98; letter-spacing: -.03em; color: var(--vxg-ink); }
.vxg-sub { margin-top: 12px; font-size: 1.15em; font-weight: 500; color: var(--vxg-sub); }
.vxg-hero-t .vxg-cname { margin-top: 16px; }
.vxg-hero-p .vxg-sws { justify-content: center; }
.vxg-hero-b { margin-top: 24px; }
/* nút */
.vxg-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.vxg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.vxg-btn.is-p { background: var(--vxg-acc); color: #fff; box-shadow: 0 8px 20px rgba(14, 58, 122, .25); }
.vxg-btn.is-p:hover { transform: translateY(-2px); }
.vxg-btn.is-s { background: var(--vxg-card); color: var(--vxg-acc); border-color: var(--vxg-foot); }
.vxg-btn.is-s:hover { border-color: var(--vxg-acc); }
.vxg-btn-ic { width: 18px; height: 18px; flex: none; }
.vxg-hero-b .vxg-cta { justify-content: flex-end; }
@media (max-width: 860px) {
  .vxg-hero-top { grid-template-columns: 1fr; }
  .vxg-hero-p { order: -1; }
}
@media (max-width: 560px) {
  .vxg-base, .vxg-band { padding-left: 18px; padding-right: 18px; }
  .vxg-kms { margin: 0 18px; }
  .vxg-net { margin-left: 0; width: 100%; font-size: 1.7em; }
  .vxg-ver { flex-basis: 100%; }
  .vxg-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .vxg-car, .vxg-sw, .vxg-ver, .vxg-card { transition: none; } }
