:root {
  --bg: #070b13;
  --bg2: #0c1220;
  --card: #111a2c;
  --card2: #16223a;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e9eefb;
  --muted: #92a0bd;
  --blue: #3b82f6;
  --blue2: #60a5fa;
  --teal: #2dd4bf;
  --warn: #fbbf24;
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 11, 19, 0.82);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .2px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand small { color: var(--muted); font-weight: 500; font-size: 12px; display: block; line-height: 1; margin-top: 2px; }
.chips {
  position: relative;
  display: flex; gap: 8px; overflow-x: auto; padding: 0 0 12px;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips a {
  flex: none; font-size: 13px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted); background: rgba(255,255,255,.02);
  transition: .2s;
}
.chips a:hover { color: var(--text); border-color: rgba(255,255,255,.2); }
.chips a.on { color: #fff; background: var(--blue); border-color: var(--blue); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.btn.sm { padding: 8px 18px; font-size: 14px; white-space: nowrap; }
.brand span { white-space: nowrap; }
.btn.primary { background: linear-gradient(135deg, #3b82f6, #2563eb); color: #fff; box-shadow: 0 8px 30px -8px rgba(59,130,246,.7); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgba(59,130,246,.9); }
.btn.ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255,255,255,.25); }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 500px at 78% 10%, rgba(59,130,246,.28), transparent 60%),
    radial-gradient(700px 400px at 5% 90%, rgba(45,212,191,.12), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.eyebrow { color: var(--blue2); font-size: 13px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.08; letter-spacing: -1px; }
h1 em { font-style: normal; color: var(--blue2); }
.lead { margin: 20px 0 28px; color: var(--muted); font-size: 17px; max-width: 520px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 32px; margin-top: 38px; flex-wrap: wrap; }
.stats b { display: block; font-size: 30px; line-height: 1.1; }
.stats span { color: var(--muted); font-size: 13px; }

/* head-unit mockup */
.unit {
  position: relative;
  background: #02040a;
  border-radius: 26px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 90px -30px rgba(59,130,246,.55), 0 0 0 6px rgba(255,255,255,.03);
}
.unit img { border-radius: 18px; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.unit::after {
  content: ""; position: absolute; inset: 10px; border-radius: 18px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.10), transparent 35%);
}
.unit.tilt { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.kicker { color: var(--blue2); font-size: 13px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; }
h2 { font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; letter-spacing: -.5px; margin: 10px 0 14px; }
.sub { color: var(--muted); max-width: 680px; font-size: 16.5px; }
.head { margin-bottom: 42px; }

.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: linear-gradient(180deg, var(--card), #0e1626);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: .25s;
}
.card:hover { border-color: rgba(96,165,250,.4); transform: translateY(-3px); }
.card h3 { font-size: 17px; margin: 14px 0 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(59,130,246,.14); color: var(--blue2);
}
.ico svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.step-n { font-size: 13px; color: var(--teal); font-weight: 700; letter-spacing: 1.4px; }

/* split feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.row + .row { margin-top: 84px; }
.row.rev .copy { order: 2; }
.copy h3 { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.2; margin: 8px 0 14px; letter-spacing: -.3px; }
.copy > p { color: var(--muted); margin-bottom: 18px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 15px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: rgba(45,212,191,.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.3 2.3 4.7-5' fill='none' stroke='%232dd4bf' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; background: rgba(251,191,36,.12); color: var(--warn); margin-left: 6px; vertical-align: middle; font-weight: 600; }

/* app store tiles */
.app { display: flex; gap: 14px; align-items: flex-start; padding: 18px; }
.app .em { font-size: 28px; line-height: 1; }
.app b { display: block; font-size: 15px; }
.app small { color: var(--blue2); font-size: 12px; }
.app p { font-size: 13.5px; margin-top: 3px; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--blue2); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 12px; font-size: 15px; }

/* contact */
.contact {
  text-align: center; border-radius: 28px; padding: 64px 24px;
  background: radial-gradient(600px 300px at 50% 0, rgba(59,130,246,.35), transparent 70%), var(--card);
  border: 1px solid var(--line);
}
.contact h2 { margin-top: 0; }
.contact .sub { margin: 0 auto 28px; }
.contact .cta { justify-content: center; }

.notice {
  margin-top: 28px; padding: 16px 20px; border-radius: 14px; font-size: 14px; color: var(--muted);
  border: 1px solid rgba(251,191,36,.25); background: rgba(251,191,36,.06);
}
.notice b { color: var(--warn); }

footer { padding: 36px 0 48px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* reveal */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { padding-top: 44px; }
  .hero-grid, .row { grid-template-columns: 1fr; gap: 32px; }
  .row.rev .copy { order: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .unit.tilt { transform: none; }
  section { padding: 60px 0; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hide-s { display: none; }
  .stats { gap: 22px; }
}

/* ---------- graphics ---------- */
.gfx {
  background: radial-gradient(420px 260px at 50% 0, rgba(59,130,246,.16), transparent 70%), linear-gradient(180deg, #101a2e, #0b1322);
  border: 1px solid var(--line); border-radius: 24px; padding: 28px;
  box-shadow: 0 30px 70px -40px rgba(59,130,246,.5);
}
.gfx svg { width: 100%; height: auto; display: block; }
.gfx + .gfx { margin-top: 16px; }
.lbl { font-size: 11px; letter-spacing: 1.4px; color: var(--muted); font-weight: 700; text-transform: uppercase; margin: 0 0 8px; }
.seg { display: flex; gap: 4px; padding: 4px; background: #0a1120; border-radius: 14px; border: 1px solid var(--line); }
.seg b { flex: 1; text-align: center; padding: 10px 6px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg b.on { color: #fff; background: linear-gradient(135deg, #4f8ff7, #2f6fe4); }
.seg.teal b.on { color: #04211d; background: linear-gradient(135deg, #5eead4, #2dd4bf); }
.gfx .seg + .lbl { margin-top: 18px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.mini div { background: #0a1120; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.mini small { display: block; color: var(--muted); font-size: 11px; }
.mini b { font-size: 16px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.pills span { font-size: 13px; font-weight: 600; padding: 8px 16px; border-radius: 999px; background: #0a1120; border: 1px solid var(--line); color: var(--muted); }
.pills span.on { background: linear-gradient(135deg, #4f8ff7, #2f6fe4); border-color: transparent; color: #fff; }

.shot { border-radius: 18px; border: 1px solid rgba(255,255,255,.12); width: 100%; height: auto; }
.cap { text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }

/* voice */
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 70px; margin: 8px 0 18px; }
.wave i { display: block; width: 6px; border-radius: 4px; background: linear-gradient(180deg, #60a5fa, #2dd4bf); animation: wv 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .9s; }
.wave i:nth-child(3n) { animation-delay: .2s; }
.wave i:nth-child(4n) { animation-delay: .4s; }
@keyframes wv { 0%,100% { height: 14px; } 50% { height: 62px; } }
.say { display: grid; gap: 10px; }
.say div { background: #0a1120; border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; font-weight: 600; }
.say div small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; margin-top: 2px; }
.mic { width: 54px; height: 54px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; background: linear-gradient(135deg, #4f8ff7, #2f6fe4); box-shadow: 0 0 0 8px rgba(59,130,246,.16), 0 0 0 18px rgba(59,130,246,.07); }
.mic svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; }

/* chat */
.chat { display: grid; gap: 10px; }
.chat-h { display: flex; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.chat-h .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #38bdf8, #2563eb); display: grid; place-items: center; font-size: 17px; }
.chat-h small { color: var(--teal); display: block; font-size: 12px; line-height: 1; margin-top: 2px; }
.bub { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.bub.me { margin-left: auto; background: #2b6be0; border-bottom-right-radius: 4px; }
.bub.bot { background: #1a2742; border-bottom-left-radius: 4px; }
.bub.auto { background: rgba(45,212,191,.1); border: 1px solid rgba(45,212,191,.3); border-bottom-left-radius: 4px; }
.tag { font-size: 11px; color: var(--teal); font-weight: 700; letter-spacing: .6px; display: block; margin-bottom: 2px; }

/* animations in svg */
.blink { animation: bl 1s steps(1) infinite; }
@keyframes bl { 0%,50% { opacity: 1; } 51%,100% { opacity: .1; } }
.flow { stroke-dasharray: 6 8; animation: fl 1.2s linear infinite; }
@keyframes fl { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .wave i, .blink, .flow { animation: none; } .wave i { height: 34px; } }

.apps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.apps span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font-size: 14px; }
.shots { display: grid; grid-template-columns: 1fr; gap: 20px; }
.hero .unit { width: 100%; }


/* ================= Giao diện kiểu app trên xe ================= */
:root {
  --bg: #050c1a;
  --bg2: #07112a;
  --card: rgba(18, 28, 50, .72);
  --line: rgba(255, 255, 255, .07);
  --blue: #3b82f6;
  --radius: 26px;
}
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: #050c1a;
  padding-bottom: 96px;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 620px at 50% -8%, #0e3a78 0%, rgba(14,58,120,0) 62%),
    radial-gradient(800px 500px at 100% 40%, rgba(37,99,235,.14), transparent 60%),
    linear-gradient(180deg, #071a38 0%, #050c1a 38%, #050c1a 100%);
}
.top { background: rgba(5, 12, 26, .94); border-bottom: 1px solid var(--line); }
.chips a { border-radius: 14px; background: rgba(255,255,255,.04); border-color: var(--line); font-weight: 500; }
.chips a.on { background: linear-gradient(135deg, #4f8ff7, #2f6fe4); border-color: transparent; }
.btn { border-radius: 16px; }
.btn.primary { background: linear-gradient(135deg, #4f8ff7, #2f6fe4); }
.btn.ghost { background: rgba(255,255,255,.05); }
.brand img { border-radius: 10px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }

.hero { background: none; padding-top: 56px; }
section.alt { background: linear-gradient(180deg, rgba(10, 22, 46, .55), rgba(6, 14, 30, .55)); border-block: 1px solid var(--line); }

/* thẻ kính, tiêu đề chữ hoa giãn chữ như app */
.card, .gfx, details, .contact {
  background: linear-gradient(180deg, rgba(22, 34, 60, .78), rgba(12, 20, 38, .78));
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px -34px rgba(0,0,0,.8);
}
.gfx { border-radius: 28px; padding: 26px; }
.gfx .lbl, .kicker { font-size: 11.5px; letter-spacing: 2px; }
.lbl { color: #8fb0e8; }
.kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 3px; background: var(--teal); margin-right: 10px; vertical-align: 1px; box-shadow: 0 0 12px var(--teal); }
.seg { background: rgba(5, 10, 22, .7); border-radius: 18px; padding: 5px; }
.seg b { border-radius: 14px; padding: 13px 6px; }
.pills span { border-radius: 14px; }
.card h3 { font-size: 16px; }
.unit { background: #000; border-radius: 22px; padding: 8px; }
.unit img { border-radius: 16px; }
.shot { border-radius: 20px; }
.ico { border-radius: 14px; }
.mini div { background: rgba(5, 10, 22, .7); border-radius: 14px; }
.say div { background: rgba(5, 10, 22, .7); }
.bub.bot { background: rgba(26, 39, 66, .9); }
details { border-radius: 18px; }
.contact { border-radius: 30px; background: radial-gradient(640px 280px at 50% 0, rgba(59,130,246,.38), transparent 70%), linear-gradient(180deg, rgba(22,34,60,.8), rgba(12,20,38,.8)); }

/* dải trạng thái như đầu màn hình xe */
.status { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 30px; }
.status span {
  font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); color: #cfe0ff;
}
.status span.g { color: var(--teal); }
.stats { margin-top: 26px; }

/* thanh dock nổi như dock của màn hình xe */
.dock {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 60;
  display: flex; gap: 4px; padding: 8px 10px; border-radius: 28px;
  background: rgba(8, 14, 28, .96);
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.05);
}
.dock a {
  display: grid; justify-items: center; gap: 3px; width: 66px; padding: 8px 4px; border-radius: 20px;
  color: #aebbd6; font-size: 10.5px; font-weight: 600; transition: .2s;
}
.dock a:hover { background: rgba(255,255,255,.07); color: #fff; }
.dock svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.dock a.zalo { background: linear-gradient(135deg, #4f8ff7, #2f6fe4); color: #fff; }
@media (max-width: 420px) { .dock a { width: 58px; } .dock a span { font-size: 9.5px; } }

.js .unit.tilt.rv.in { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); }
@media (max-width: 920px) { .js .unit.tilt.rv.in { transform: none; } }


/* ================= Trang phụ kiện ================= */
.chips a.tab { border-color: rgba(45,212,191,.4); color: var(--teal); }
.shop-hero { padding: 56px 0 44px; }
.shop-hero .lead { max-width: 640px; }
.carpick { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 14px; margin-top: 34px; }
.cp {
  display: block; padding: 18px 22px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,34,60,.78), rgba(12,20,38,.78));
  border: 1px solid var(--line); transition: .2s;
}
.cp:hover { border-color: rgba(96,165,250,.5); transform: translateY(-2px); }
.cp b { display: block; font-size: 19px; }
.cp small { color: var(--teal); font-size: 13px; font-weight: 600; }
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.pcard {
  display: flex; flex-direction: column; overflow: hidden; border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,34,60,.78), rgba(12,20,38,.78));
  border: 1px solid var(--line); transition: .25s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px -34px rgba(0,0,0,.8);
}
.pcard:hover { border-color: rgba(96,165,250,.5); transform: translateY(-4px); }
.pimg { position: relative; aspect-ratio: 1; background: #0a1120; overflow: hidden; }
.pimg img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.pcard:hover .pimg img { transform: scale(1.04); }
.tg {
  position: absolute; left: 10px; bottom: 10px; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(5,12,26,.82); color: #cfe0ff; border: 1px solid var(--line);
}
.tg.new { left: 10px; top: 10px; bottom: auto; background: linear-gradient(135deg, #5eead4, #2dd4bf); color: #04211d; border: 0; }
.pimg .tg + .tg { left: auto; right: 10px; }
.pbody { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 18px; flex: 1; }
.pbody h3 { font-size: 14.5px; line-height: 1.4; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prow { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.price { font-size: 20px; color: #fbbf24; letter-spacing: -.3px; }
.buy { font-size: 12.5px; color: var(--blue2); font-weight: 600; }
.empty {
  grid-column: 1 / -1; text-align: center; padding: 44px 20px; border-radius: 24px;
  border: 1px dashed rgba(255,255,255,.18); background: rgba(255,255,255,.02);
}
.empty b { font-size: 18px; display: block; }
.empty p { color: var(--muted); margin: 8px auto 18px; max-width: 460px; }
@media (max-width: 1000px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .pbody { padding: 12px 12px 14px; } .pbody h3 { font-size: 13px; } .price { font-size: 17px; } .carpick { grid-template-columns: 1fr 1fr; } }

.pimg { display: block; }
.pbody h3 a:hover { color: var(--blue2); }
.pbody .price { display: block; }
.pbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.pb { text-align: center; font-size: 14px; font-weight: 700; padding: 10px 6px; border-radius: 12px; transition: .2s; color: #fff; }
.pb.zalo { background: linear-gradient(135deg, #4f8ff7, #2f6fe4); }
.pb.shopee { background: linear-gradient(135deg, #ff7a45, #ee4d2d); }
.pb:hover { transform: translateY(-1px); filter: brightness(1.1); }
.pcard { transition: border-color .25s, transform .25s; }
.pbody { gap: 8px; }

/* nút thay cho link ở thẻ sản phẩm */
button.pimg { border: 0; padding: 0; cursor: zoom-in; font: inherit; color: inherit; width: 100%; text-align: left; }
.pbody h3 button { all: unset; cursor: pointer; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pbody h3 button:hover { color: var(--blue2); }
.pbody h3 button:focus-visible, button.pimg:focus-visible { outline: 2px solid var(--blue2); outline-offset: 2px; }
.tg.cnt { right: 10px; left: auto; top: 10px; bottom: auto; }

/* popup ảnh */
.pm-open { overflow: hidden; }
.pm[hidden] { display: none; }
.pm { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; }
.pm-bg { position: absolute; inset: 0; background: rgba(2, 6, 14, .82); }
.pm-box {
  position: relative; width: min(960px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); grid-template-areas: "view info" "thumbs info";
  gap: 14px 24px; padding: 20px; border-radius: 28px; align-content: start;
  background: linear-gradient(180deg, #14213b, #0b1424); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,.9);
}
.pm-x {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(5,12,26,.8); color: #fff; font-size: 16px; cursor: pointer;
}
.pm-x:hover { background: rgba(255,255,255,.12); }
.pm-view { grid-area: view; position: relative; border-radius: 20px; overflow: hidden; background: #070d1a; aspect-ratio: 1; touch-action: pan-y; }
.pm-main { width: 100%; height: 100%; object-fit: contain; display: block; }
.pm-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  background: rgba(5,12,26,.75); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px;
}
.pm-nav[hidden] { display: none; }
.pm-nav:hover { background: var(--blue); }
.pm-nav.prev { left: 10px; } .pm-nav.next { right: 10px; }
.pm-count { position: absolute; left: 12px; bottom: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(5,12,26,.8); color: #cfe0ff; }
.pm-thumbs { grid-area: thumbs; display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.pm-thumbs[hidden] { display: none; }
.pm-thumbs button { flex: none; width: 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: #070d1a; cursor: pointer; opacity: .65; transition: .15s; }
.pm-thumbs button.on { border-color: var(--blue2); opacity: 1; }
.pm-thumbs button:hover { opacity: 1; }
.pm-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pm-info { grid-area: info; display: flex; flex-direction: column; gap: 10px; padding: 34px 6px 4px 0; }
.pm-title { font-size: 18px; line-height: 1.4; }
.pm-price { font-size: 26px; color: #fbbf24; }
.pm-opts { color: var(--muted); font-size: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pm-opts[hidden] { display: none; }
.pm-info .pbtns { margin-top: auto; }
.pm-info .pb { padding: 13px 6px; font-size: 15px; }
@media (max-width: 760px) {
  .pm { padding: 0; align-items: end; }
  .pm-box { grid-template-columns: 1fr; grid-template-areas: "view" "thumbs" "info"; max-height: 94vh; border-radius: 26px 26px 0 0; padding: 14px; gap: 10px; }
  .pm-info { padding: 4px 2px 8px; }
  .pm-view { border-radius: 16px; }
  .pm-thumbs button { width: 54px; height: 54px; }
  .pm-title { font-size: 16px; }
}

/* thanh dock: sáng theo mục đang xem */
.dock a.zalo { background: none; color: #aebbd6; }
.dock a.zalo:hover { background: rgba(255,255,255,.07); color: #fff; }
.dock a.on { background: linear-gradient(135deg, #4f8ff7, #2f6fe4); color: #fff; box-shadow: 0 8px 20px -8px rgba(59,130,246,.9); }
.dock a { position: relative; }


/* ================= XC Connect ================= */
.xc-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.xc-brand img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); }
.xc-brand b { display: block; font-size: 22px; letter-spacing: -.3px; }
.xc-brand small { color: var(--muted); font-size: 13px; }
.phone {
  margin: 0 auto; width: min(290px, 100%); padding: 8px; border-radius: 42px; background: #000;
  border: 1px solid rgba(255,255,255,.2); box-shadow: 0 40px 80px -30px rgba(59,130,246,.5), 0 0 0 5px rgba(255,255,255,.03);
}
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 2; object-fit: cover; border-radius: 34px; }
.phone-box { display: grid; place-items: center; padding: 34px 20px; }
.phones { position: relative; display: flex; justify-content: center; gap: 0; min-height: 0; }
.phones .phone { width: min(250px, 46%); }
.phones .phone.p2 { margin: 56px 0 0 -26px; transform: rotate(4deg); }
.phones .phone:first-child { transform: rotate(-3deg); }
.phones2 { align-items: start; }
.phones2 .cap { margin-top: 16px; }
.teaser-phones { display: flex; justify-content: center; }
@media (max-width: 920px) { .phones .phone { width: min(220px, 44%); } .phone-box { padding: 24px 14px; } }
@media (max-width: 560px) { .phones .phone.p2 { margin-top: 36px; } }
.js .phones.rv.in { transform: none; }
.phones2 .gfx + .gfx { margin-top: 0; }


/* ================= XC Connect: widget, thẻ sạc, thông báo ================= */
.wd-wrap { display: grid; grid-template-columns: 130px 1fr; gap: 12px; margin-bottom: 14px; }
.wd { border-radius: 22px; padding: 14px 16px; background: linear-gradient(160deg, #15233f, #0b1424); border: 1px solid rgba(255,255,255,.1); }
.wd small { display: block; color: var(--muted); font-size: 11px; font-weight: 600; }
.wd b { display: block; font-size: 34px; line-height: 1.1; letter-spacing: -1px; margin: 6px 0 2px; }
.wd b i { font-style: normal; font-size: 16px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.wd span { color: #cfe0ff; font-size: 12px; font-weight: 600; }
.wd-bar { height: 6px; border-radius: 3px; background: #1d2a47; margin-top: 12px; overflow: hidden; }
.wd-bar u { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #2dd4bf, #3b82f6); }
.wd-med { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.wd-ac { display: grid; justify-items: center; gap: 6px; padding: 12px 14px; border-radius: 18px; background: rgba(59,130,246,.18); border: 1px solid rgba(96,165,250,.4); }
.wd-ac svg, .ctl svg { width: 24px; height: 24px; stroke: #60a5fa; fill: none; stroke-width: 1.8; stroke-linecap: round; }
.wd-ac em { font-style: normal; font-size: 11px; font-weight: 700; color: #cfe0ff; }
.live { border-radius: 24px; padding: 16px 18px; background: #05080f; border: 1px solid rgba(255,255,255,.12); margin-bottom: 14px; }
.live-h { display: flex; align-items: center; gap: 12px; }
.live-h b { display: block; font-size: 15px; }
.live-h small { color: var(--muted); font-size: 12px; }
.live-h strong { margin-left: auto; font-size: 26px; color: var(--teal); letter-spacing: -.5px; }
.live-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(45,212,191,.16); }
.live-ic svg { width: 20px; height: 20px; fill: #2dd4bf; }
.live-bar { position: relative; height: 8px; border-radius: 4px; background: #1d2a47; margin: 14px 0 10px; overflow: visible; }
.live-bar u { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2dd4bf, #3b82f6); }
.live-bar s { position: absolute; top: -4px; width: 3px; height: 16px; border-radius: 2px; background: #fbbf24; }
.live-f { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--muted); flex-wrap: wrap; }
.lockrow { display: flex; align-items: center; gap: 12px; justify-content: space-between; }
.ring { position: relative; width: 62px; height: 62px; flex: none; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; }
.ring svg { position: absolute; inset: 6px; width: 50px; height: 50px; }
.ring b { position: relative; font-size: 15px; }
.rect { flex: 1; border-radius: 16px; padding: 10px 14px; background: rgba(255,255,255,.07); }
.rect b { display: block; font-size: 14px; }
.rect small { color: var(--muted); font-size: 12px; }
.ctl { flex: none; width: 62px; height: 62px; border-radius: 50%; background: rgba(255,255,255,.07); display: grid; place-items: center; align-content: center; gap: 1px; }
.ctl small { font-size: 9.5px; color: #cfe0ff; font-weight: 700; }
.notis { gap: 14px; }
.noti {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(22,34,60,.78), rgba(12,20,38,.78)); border: 1px solid var(--line);
}
.noti b { display: block; font-size: 15.5px; margin-bottom: 3px; }
.noti small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.ni { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: rgba(59,130,246,.16); }
.ni svg { width: 21px; height: 21px; fill: none; stroke: #60a5fa; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ni.ok { background: rgba(45,212,191,.16); } .ni.ok svg { stroke: #2dd4bf; }
.ni.warn { background: rgba(251,191,36,.14); } .ni.warn svg { stroke: #fbbf24; }
.ni.bad { background: rgba(239,68,68,.14); } .ni.bad svg { stroke: #f87171; }
.g4 .ico { margin-bottom: 4px; }
@media (max-width: 560px) { .wd-wrap { grid-template-columns: 1fr; } }


/* ================= XC Connect: ảnh chụp thật ================= */
.phone.real img { aspect-ratio: 660 / 1434; }
.shot { margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid rgba(255,255,255,.16); box-shadow: 0 30px 60px -34px rgba(0,0,0,.8); background: #05080f; }
.shot img { display: block; width: 100%; height: auto; }
.shots { display: grid; gap: 14px; align-content: start; }
.shots3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; margin-top: 56px; }
.shots3 figure { margin: 0; }
.shots3 .cap { margin-top: 12px; }
.gfx.plain { background: none; border: 0; box-shadow: none; padding: 0; backdrop-filter: none; }
.notis.col { display: grid; gap: 12px; }
.steps-col { display: grid; gap: 14px; }
.phones2.pair { max-width: 720px; margin: 0 auto; }
.tag-demo { display: inline-block; margin-top: 8px; font-size: 11.5px; color: var(--muted); border: 1px dashed rgba(255,255,255,.22); border-radius: 999px; padding: 2px 10px; }
@media (max-width: 920px) { .shots3 { grid-template-columns: 1fr; } .shots3 figure { max-width: 420px; margin: 0 auto; } }

/* ================= Trang chủ: ảnh chụp thật màn hình xe ================= */
.stack { display: grid; gap: 14px; align-content: start; }
.stack .shot { display: block; }
.imgcol.narrow { max-width: 470px; margin: 0 auto; width: 100%; }
.tag-demo.block { display: block; width: fit-content; margin: 10px auto 0; }
.moi-card .ico { margin-bottom: 4px; }
.wide-feature .copy p { max-width: 760px; }
.wide-feature .ticks { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.wide-feature .copy + .rv { margin-top: 28px; }
@media (max-width: 720px) { .wide-feature .ticks { grid-template-columns: 1fr; } }
