/* Nhóm Tiện ích: hub, Trả góp, So sánh xe. Nền chung (hero, thẻ, tóm tắt, form, FAQ) ở rolling-cost.css. */
.vf-rc-sr, .vf-cmp-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Hero trang Tiện ích: nền trắng → xanh hybrid nhạt (bỏ gradient đỏ nhạt mặc định của .vf-hero). */
.vf-hubu .vf-hero { background: linear-gradient(120deg, var(--color-surface), var(--color-hybrid-soft)); }

/* Hub */
.vf-hubu-main { display: grid; gap: var(--space-12); padding-block: var(--block-py); }
.vf-hubu-h { margin: 0 0 var(--space-5); font-size: var(--font-size-h2); line-height: var(--leading-tight); font-weight: var(--font-weight-display); letter-spacing: 0; }
.vf-hubu-grid { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .vf-hubu-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .vf-hubu-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.vf-hubu-card { position: relative; display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-elevated); box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.vf-hubu-card:hover, .vf-hubu-card:focus-within { border-color: var(--color-cta-primary); box-shadow: none; }
.vf-hubu-card svg { color: var(--color-cta-primary); }
.vf-hubu-card h3 { margin: 0; font-size: var(--text-xl); line-height: 1.3; font-weight: var(--font-semibold); }
.vf-hubu-card h3 a { color: var(--color-brand-deep); text-decoration: none; }
.vf-hubu-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg); } /* cả thẻ là vùng bấm */
.vf-hubu-card h3 a:focus-visible { outline: none; }
.vf-hubu-card:has(h3 a:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.vf-hubu-card p { margin: 0; font-size: var(--text-sm); line-height: 1.6; color: var(--color-text-muted); }
.vf-hubu-more { margin-top: auto; padding-top: var(--space-2); font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--color-cta-primary); }
.vf-hubu-steps { max-width: 880px; }
.vf-hubu-lead { margin: calc(-1 * var(--space-3)) 0 var(--space-5); color: var(--color-text-muted); }
.vf-hubu-steps ol { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: s; }
.vf-hubu-steps li { position: relative; padding: var(--space-4) var(--space-5) var(--space-4) 68px; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface-elevated); counter-increment: s; }
.vf-hubu-steps li::before { content: counter(s); position: absolute; left: var(--space-5); top: var(--space-4); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--color-brand-deep); color: var(--color-text-inverse); font-size: var(--text-sm); font-weight: var(--font-bold); }
.vf-hubu-steps h3 { margin: 0 0 2px; font-size: var(--text-lg); font-weight: var(--font-semibold); }
.vf-hubu-steps h3 a { color: var(--color-brand-deep); }
.vf-hubu-steps p { margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }

/* Trả góp */
.vf-ins-field { margin-bottom: var(--space-5); }
.vf-ins-field__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); }
.vf-ins-field__head .vf-rc-label { margin-bottom: var(--space-2); }
.vf-ins-out { white-space: nowrap; text-decoration: none; font-size: var(--text-base); font-weight: var(--font-bold); color: var(--color-cta-primary); font-variant-numeric: tabular-nums; }
.vf-ins-range { --p: 0%; display: block; width: 100%; height: 28px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.vf-ins-range:focus { outline: none; }
.vf-ins-field input.vf-ins-range::-webkit-slider-runnable-track, .vf-ins-field input.vf-ins-range:focus::-webkit-slider-runnable-track { height: 8px; border-radius: var(--radius-lg); background: linear-gradient(to right, var(--color-cta-primary) var(--p), var(--color-border) var(--p)); }
.vf-ins-range::-moz-range-track { height: 8px; border-radius: var(--radius-lg); background: var(--color-border); }
.vf-ins-range::-moz-range-progress { height: 8px; border-radius: var(--radius-lg); background: var(--color-cta-primary); }
.vf-ins-field input.vf-ins-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border: 3px solid var(--color-cta-primary); border-radius: 50%; background: var(--color-surface); box-shadow: none; }
.vf-ins-range::-moz-range-thumb { box-sizing: border-box; width: 28px; height: 28px; border: 3px solid var(--color-cta-primary); border-radius: 50%; background: var(--color-surface); box-shadow: none; }
.vf-ins-field input.vf-ins-range:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--color-cta-primary); outline-offset: 2px; }
.vf-ins-range:focus-visible::-moz-range-thumb { outline: 3px solid var(--color-cta-primary); outline-offset: 2px; }
.vf-ins-scale { display: flex; justify-content: space-between; margin: 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.vf-ins-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4) var(--space-3); }
.vf-ins-two .vf-ins-field { margin-bottom: 0; min-width: 0; }
.vf-ins-two .vf-rc-label { min-height: 2.6em; }
.vf-ins-unit { position: relative; display: block; }
.vf-ins-unit input.vf-rc-select { height: 52px; padding: 0 64px 0 16px; border: 1px solid var(--color-border-strong); border-radius: var(--radius-lg); background-color: var(--color-surface-elevated); box-shadow: none; -moz-appearance: textfield; appearance: textfield; }
.vf-ins-unit input.vf-rc-select::-webkit-outer-spin-button, .vf-ins-unit .vf-rc-select::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.vf-ins-unit > span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); font-size: var(--text-sm); color: var(--color-text-muted); pointer-events: none; }
.vf-ins-method { margin-top: var(--space-5); }
.vf-ins-sub { margin: 4px 0 var(--space-3); font-size: var(--text-sm); font-weight: var(--font-bold); opacity: .9; text-transform: none; letter-spacing: 0; }
.vf-rc-total .vf-ins-sub { text-transform: none; letter-spacing: 0; font-weight: var(--font-bold); }
.vf-ins-schedule { padding-bottom: var(--space-8); }
.vf-ins-schedule h2 { margin: 0 0 var(--space-4); font-size: var(--font-size-h2); line-height: var(--leading-tight); font-weight: var(--font-weight-display); letter-spacing: 0; }
.vf-ins-schedule details { border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface-elevated); overflow: hidden; }
.vf-ins-schedule summary { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 12px 20px; font-weight: var(--font-bold); cursor: pointer; list-style: none; }
.vf-ins-schedule summary::-webkit-details-marker { display: none; }
.vf-ins-schedule summary::after { content: "+"; font-size: var(--text-xl); color: var(--color-cta-primary); }
.vf-ins-schedule details[open] summary::after { content: "−"; }
.vf-ins-table { max-height: 480px; overflow: auto; border-top: 1px solid var(--color-border); }
.vf-ins-table table, .vf-cmp-key table { width: 100%; margin: 0; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.vf-ins-table :is(th, td), .vf-cmp-key :is(th, td) { padding: 10px 14px; border-bottom: 1px solid var(--color-border); text-align: right; white-space: nowrap; background: none; }
.vf-ins-table thead th { position: sticky; top: 0; background: var(--color-surface-soft); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.vf-ins-table :is(th:first-child, td:first-child), .vf-cmp-key :is(th:first-child, td:first-child) { text-align: left; }

/* So sánh xe */
.vf-cmp-main { display: grid; gap: var(--space-8); padding-block: var(--block-py); }
.vf-cmp-slots { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
@media (min-width: 768px) { .vf-cmp-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.vf-cmp-slot { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.vf-cmp-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.vf-cmp-bar h2, .vf-cmp-key h2 { margin: 0 0 var(--space-4); font-size: var(--font-size-h2); line-height: var(--leading-tight); font-weight: var(--font-weight-display); letter-spacing: 0; }
.vf-cmp-bar h2 { margin: 0; }
.vf-cmp-diff { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font-size: var(--text-sm); font-weight: var(--font-bold); cursor: pointer; }
.vf-cmp-diff input { width: 18px; height: 18px; margin: 0; accent-color: var(--color-cta-primary); }
.vf-cmp-scroll { position: relative; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface-elevated); }
.vf-cmp-scroll:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.vf-cmp-t { width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); table-layout: fixed; }
.vf-cmp-t :is(th, td) { padding: 12px 14px; border-bottom: 1px solid var(--color-border); vertical-align: top; text-align: left; background: none; }
.vf-cmp-t--2 { min-width: 520px; }
.vf-cmp-t--3 { min-width: 680px; }
.vf-cmp-t > thead > tr > :first-child, .vf-cmp-t tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; width: 132px; background: var(--color-surface-elevated); font-weight: var(--font-bold); color: var(--color-text-muted); }
@media (min-width: 768px) { .vf-cmp-t > thead > tr > :first-child, .vf-cmp-t tbody th[scope="row"] { width: 200px; } }
.vf-cmp-t thead th { padding-block: var(--space-4); }
.vf-cmp-car { display: grid; gap: 2px; justify-items: start; color: inherit; text-decoration: none; }
.vf-cmp-car img { width: 100%; max-width: 160px; height: auto; aspect-ratio: 3 / 2; object-fit: contain; }
.vf-cmp-car strong { font-size: var(--text-base); font-weight: var(--font-bold); color: var(--color-brand-deep); }
.vf-cmp-car span { font-size: var(--text-sm); font-weight: var(--font-bold); color: var(--color-text-muted); }
.vf-cmp-car:hover strong { color: var(--color-cta-primary); }
.vf-cmp-price td { font-size: var(--text-base); font-weight: var(--font-bold); color: var(--color-cta-primary); font-variant-numeric: tabular-nums; }
.vf-cmp-group th { padding-block: 8px; background: var(--color-surface-soft); font-size: var(--text-sm); font-weight: var(--font-bold); letter-spacing: .1em; text-transform: uppercase; color: var(--color-brand-primary); position: static; }
.vf-cmp-t td.is-best { font-weight: var(--font-bold); color: var(--color-success-strong); background: var(--color-success-bg); }
.vf-cmp-na { color: var(--color-text-muted); font-weight: var(--font-normal); font-style: italic; }
.vf-cmp-empty { padding: var(--space-6); text-align: center; color: var(--color-text-muted); }
.vf-cmp-cta { margin-top: var(--space-5); max-width: 520px; }
.vf-cmp-result .vf-rc-note { margin-top: var(--space-4); }
.vf-cmp-key { content-visibility: auto; contain-intrinsic-size: auto 600px; }
.vf-cmp-key table { min-width: 560px; }
.vf-cmp-key thead th { background: var(--color-surface-soft); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); }
.vf-cmp-key tbody th a { font-weight: var(--font-bold); }
.vf-cmp-key :is(th, td) { text-align: left; }
.vf-cmp-main > *, .vf-hubu-main > * { min-width: 0; }
@media (max-width: 767px) { .vf-cmp-t > thead > tr > :first-child, .vf-cmp-t tbody th[scope="row"] { width: 112px; } .vf-cmp-t :is(th, td) { padding: 10px; } }
.vf-hubu-card__icon { display: block; width: auto; max-width: 40px; height: auto; max-height: 40px; }
