/* =========================================================
   TRANG KHÁCH — index.html
   ========================================================= */

body { animation: fadeIn .5s var(--ease); }
.container { max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
@media (max-width: 420px) { .container { padding-inline: 16px; } }

/* ---------- Thanh thông báo ---------- */
.announce {
  background: var(--accent); color: var(--on-accent);
  font-size: 13.5px; font-weight: 500;
  display: grid; grid-template-rows: 1fr;
  transition: grid-template-rows .4s var(--ease), opacity .3s;
}
.announce > .container { overflow: hidden; min-height: 0; display: flex; align-items: center; gap: 10px; }
.announce .ic:first-child { opacity: .9; }
.announce-txt { flex: 1; padding-block: 9px; text-align: center; }
.announce-x { border: 0; background: none; color: inherit; cursor: pointer; padding: 6px; border-radius: 6px; opacity: .8; display: grid; }
.announce-x:hover { opacity: 1; background: rgba(255,255,255,.15); }
.announce.closing { grid-template-rows: 0fr; opacity: 0; }

.admin-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 16px; font-size: 13px; font-weight: 500;
  background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--ink);
  border-bottom: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line));
}
.admin-bar a { font-weight: 700; }

/* ---------- Đầu trang ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.5) blur(14px); -webkit-backdrop-filter: saturate(1.5) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s;
}
.header.scrolled { background: color-mix(in srgb, var(--surface) 84%, transparent); border-color: var(--line); box-shadow: var(--shadow-sm); }
.header .container { display: flex; align-items: center; gap: 20px; height: 68px; transition: height .3s var(--ease); }
.header.scrolled .container { height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo:hover .logo-mark { transform: rotate(-10deg) scale(1.06); }
.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav a {
  position: relative; padding: 8px 12px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: 14.5px; text-decoration: none;
  transition: color .2s, background-color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.active { color: var(--ink); }
.nav a.active::after { transform: scaleX(1); }
.head-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.search-trigger {
  display: flex; align-items: center; gap: 8px;
  height: 40px; min-width: 210px; padding: 0 8px 0 12px;
  border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  color: var(--muted); font-size: 13.5px; cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.search-trigger:hover { border-color: var(--accent-line); box-shadow: var(--shadow-sm); }
.search-trigger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-trigger kbd { margin-left: auto; }
.btn-icon.btn-ghost { border-color: transparent; }
.btn-icon.btn-ghost:hover { border-color: var(--line); }
.head-cta { --h: 40px; }
.menu-btn { display: none; }
@media (max-width: 1080px) { .head-cta { display: none; } }
@media (max-width: 960px) {
  .nav { display: none; }
  .menu-btn { display: inline-flex; }
  .search-trigger { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .search-trigger span, .search-trigger kbd { display: none; }
}

/* Menu điện thoại */
.mnav { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.mnav .scrim { position: absolute; inset: 0; background: rgba(8,12,24,.45); opacity: 0; transition: opacity .3s; }
.mnav .panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
  display: flex; flex-direction: column; gap: 4px;
  padding: calc(14px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--surface); box-shadow: var(--shadow-lg);
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  transform: translateX(105%); transition: transform .45s var(--ease);
}
.mnav.open { pointer-events: auto; }
.mnav.open .scrim { opacity: 1; }
.mnav.open .panel { transform: none; }
.mnav-h { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.mnav a:not(.btn) {
  display: flex; align-items: center; gap: 12px;
  padding: 12px; border-radius: var(--r);
  color: var(--ink); font-weight: 600; text-decoration: none;
}
.mnav a:not(.btn) .ic { color: var(--muted); }
.mnav a:not(.btn):hover { background: var(--surface-2); }
.mnav a { opacity: 0; transform: translateX(18px); transition: opacity .35s var(--ease), transform .35s var(--ease), background-color .2s; transition-delay: calc(var(--i) * 45ms + .08s); }
.mnav.open a { opacity: 1; transform: none; }
.mnav-cta { margin-top: auto; --h: 48px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 56px 80px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero .b1 { width: 460px; height: 460px; background: var(--accent); top: -170px; left: -120px; }
.hero .b2 { width: 380px; height: 380px; background: var(--accent2); right: -80px; top: 60px; opacity: calc(var(--blob-op) * .7); animation-duration: 24s; animation-delay: -6s; }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .55;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }
.anim { animation: rise .8s var(--ease) both; animation-delay: var(--d, 0s); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; margin: 20px 0 16px; }
.hl {
  background: linear-gradient(95deg, var(--accent) 10%, var(--accent2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  background-size: 200% 100%; animation: hlShift 6s ease-in-out infinite alternate;
}
@keyframes hlShift { to { background-position: 100% 0; } }
.lead { font-size: 17px; color: var(--ink-2); max-width: 52ch; margin: 0 0 28px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.stats { display: flex; gap: 36px; flex-wrap: wrap; margin: 40px 0 0; }
.stat { display: flex; flex-direction: column-reverse; gap: 2px; }
.stat dd { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat dt { font-size: 13px; color: var(--muted); }

/* Thẻ gói nổi bật */
.feature { position: relative; padding: 10px 10px 18px 0; }
.feature::before {
  content: ""; position: absolute; inset: 22px -2px 0 18px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--price) 10%, var(--surface)));
  border: 1px solid var(--line);
  transform: rotate(3deg);
  transition: transform .6s var(--spring);
}
.feature:hover::before { transform: rotate(5deg) translateY(4px); }
.fcard {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 18px;
  padding: 22px 22px 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.fhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flabel { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.fdots { display: flex; gap: 6px; }
.fdot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: var(--r-pill); background: var(--line-2); cursor: pointer; transition: width .35s var(--ease), background-color .3s; }
.fdot.on { width: 22px; background: var(--accent); }
.fdot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fbody { display: flex; flex-direction: column; gap: 12px; min-height: 176px; transition: opacity .26s var(--ease), transform .26s var(--ease); }
.fbody.out { opacity: 0; transform: translateY(10px); }
.f-game { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); font-weight: 500; flex-wrap: wrap; }
.f-name { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -.02em; }
.f-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.f-time { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); }
.f-price { display: flex; align-items: baseline; gap: 10px; margin-top: auto; }
.f-price b { font-size: 36px; font-weight: 800; color: var(--price); letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1; }
.f-price s { color: var(--muted); font-size: 16px; }
.ffoot .btn { width: 100%; }
.fprog { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--surface-3); }
.fprog i { display: block; height: 100%; width: 0; background: var(--accent); }
.fprog i.run { animation: fprog 5s linear forwards; }
.feature:hover .fprog i, .feature:focus-within .fprog i { animation-play-state: paused; }
@keyframes fprog { to { width: 100%; } }

@media (max-width: 960px) {
  .hero { padding-block: 36px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature { max-width: 520px; }
  .stats { gap: 24px; }
}

/* ---------- Khung section ---------- */
.section { padding-block: 80px; }
.section.band { background: var(--bg-2); border-block: 1px solid var(--line); }
.sec-head { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 36px; }
.sec-head.center { margin-inline: auto; text-align: center; align-items: center; }
.kicker { font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.sec-head h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.sec-head p { margin: 0; color: var(--muted); font-size: 16px; }
@media (max-width: 640px) { .section { padding-block: 56px; } }

.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- Thanh tiến trình chọn ---------- */
.stepper {
  list-style: none; margin: 0 0 20px; padding: 14px 20px;
  display: flex; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.stp { display: flex; align-items: center; gap: 10px; flex: none; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.stp .n {
  width: 30px; height: 30px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted);
  font-size: 13px; font-weight: 700;
  transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--spring);
}
.stp.cur { color: var(--ink); }
.stp.cur .n { background: var(--accent); color: var(--on-accent); box-shadow: 0 0 0 5px var(--accent-soft); transform: scale(1.06); }
.stp.done { color: var(--ink-2); }
.stp.done .n { background: var(--ok); color: #fff; }
.stp-bar { flex: 1; height: 3px; margin: 0 14px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.stp-bar i { display: block; height: 100%; width: 100%; background: var(--ok); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.stp-bar.fill i { transform: scaleX(1); }
@media (max-width: 640px) {
  .stepper { padding: 12px 14px; }
  .stp .t { display: none; }
  .stp.cur .t { display: inline; }
  .stp-bar { margin: 0 8px; }
}

/* ---------- Khu vực chọn ---------- */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.sel { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
@media (max-width: 960px) { .pricing { grid-template-columns: minmax(0, 1fr); } }

.step-card { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 0; transition: border-color .35s, box-shadow .35s; }
.step-card.cur { border-color: var(--accent-line); box-shadow: var(--shadow); }
.step-card#cardGame { position: relative; z-index: 5; }
.sc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.sc-n {
  width: 26px; height: 26px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface-3); color: var(--muted); font-size: 12.5px; font-weight: 700;
  transition: background-color .3s, color .3s, transform .45s var(--spring);
}
.step-card.cur .sc-n { background: var(--accent); color: var(--on-accent); transform: scale(1.08); }
.step-card.done .sc-n { background: var(--ok); color: #fff; }
.sc-title { font-weight: 700; font-size: 15.5px; }
.step-card.locked .sc-title { color: var(--muted); }
.sc-meta { margin-left: auto; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Mở/đóng mượt bằng grid-rows */
.collapse { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .35s var(--ease); }
.collapse.open { grid-template-rows: 1fr; opacity: 1; }
.collapse > div { overflow: hidden; min-height: 0; padding: 2px; margin: -2px; }
.locked-msg {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: var(--r);
  border: 1px dashed var(--line-2); background: var(--surface-2);
  color: var(--muted); font-weight: 500; font-size: 14px;
}

/* Ô chọn game (thanh xổ) */
.dd { position: relative; }
.dd-btn {
  width: 100%; min-height: 58px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 11px;
  border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--ink);
  text-align: left; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.dd-btn:hover { border-color: var(--accent-line); }
.dd-btn:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.dd.open .dd-btn { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.dd-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dd-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-sub { font-size: 12.5px; color: var(--muted); }
.dd-ph { color: var(--muted); font-weight: 500; font-size: 15px; }
.dd-btn .caret { margin-left: auto; color: var(--muted); transition: transform .35s var(--ease); }
.dd.open .dd-btn .caret { transform: rotate(180deg); color: var(--accent); }
.dd-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 40;
  padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg);
  transform-origin: top center;
  opacity: 0; transform: translateY(-8px) scale(.98); visibility: hidden;
  transition: opacity .2s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.dd.open .dd-panel { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .35s var(--ease), visibility 0s; }
.dd-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 40px; border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); }
.dd-search input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 14px; }
.dd-list { list-style: none; margin: 6px 0 0; padding: 0; max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.dd-opt { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; transition: background-color .15s; }
.dd.open .dd-opt { animation: rise .35s var(--ease) both; animation-delay: calc(var(--i) * 25ms); }
.dd-opt:hover, .dd-opt.hl { background: var(--surface-2); }
.dd-opt[aria-selected="true"] { background: var(--accent-soft); }
.dd-opt .ck { margin-left: auto; color: var(--accent); opacity: 0; transform: scale(.5); transition: .3s var(--spring); }
.dd-opt[aria-selected="true"] .ck { opacity: 1; transform: none; }
.dd-empty { padding: 16px 10px; color: var(--muted); font-size: 14px; text-align: center; }
mark { background: color-mix(in srgb, var(--accent) 24%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }

/* Danh sách danh mục / sản phẩm — tối đa 5 dòng, còn lại cuộn */
.scroller { position: relative; }
.scroller::after {
  content: ""; position: absolute; left: 0; right: 10px; bottom: 0; height: 44px;
  background: linear-gradient(to bottom, transparent, var(--surface));
  pointer-events: none; opacity: 0; transition: opacity .3s;
}
.scroller.more::after { opacity: 1; }
.opts {
  --row: 64px; --gap: 8px;
  position: relative; list-style: none; margin: 0; padding: 2px 6px 2px 2px;
  display: flex; flex-direction: column; gap: var(--gap);
  max-height: calc(var(--row) * 5 + var(--gap) * 4 + 4px);
  overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth;
}
.prod-opts { --row: 66px; }
.opts-empty { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.opts.stagger > li { animation: rise .45s var(--ease) both; animation-delay: calc(var(--i) * 45ms + 60ms); }
.opt {
  position: relative; overflow: hidden; isolation: isolate;
  width: 100%; min-height: var(--row);
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface-2); color: var(--ink);
  text-align: left; cursor: pointer;
  transition: border-color .2s, background-color .2s, transform .25s var(--ease), box-shadow .25s;
}
.opt:hover { border-color: var(--accent-line); background: var(--surface); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.opt:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); transform: none; }
.opt .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.opt .nm { font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; line-height: 1.35; }
.opt .sub { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: var(--muted); }
.opt .sub .from { color: var(--price); font-weight: 700; }
.opt .pr { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; text-align: right; }
.opt .pr b { color: var(--price); font-weight: 800; font-size: 15.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.opt .pr s { color: var(--muted); font-size: 12px; white-space: nowrap; }
.opt .go { color: var(--muted); transition: transform .25s var(--ease), color .2s; }
.opt:hover .go { transform: translateX(3px); color: var(--accent); }
.opt[aria-pressed="true"] .go { color: var(--accent); }

.more-hint {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%; margin-top: 8px; padding: 6px;
  border: 0; background: none; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), color .2s;
}
.more-hint.show { opacity: 1; transform: none; pointer-events: auto; }
.more-hint:hover { color: var(--accent); }
.more-hint .ic { animation: bob 1.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

.ptools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--line-2); }
.chip:active { transform: scale(.96); }
.chip .cnt { min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--surface-3); color: var(--muted); font-size: 11px; display: inline-grid; place-items: center; }
.chip[aria-pressed="true"] { background: var(--price); border-color: var(--price); color: #fff; }
.chip[aria-pressed="true"] .cnt { background: rgba(255,255,255,.25); color: #fff; }
.chip:disabled { opacity: .45; cursor: not-allowed; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Đã xem gần đây */
.recent { padding: 14px 18px 16px; display: flex; flex-direction: column; gap: 10px; animation: rise .5s var(--ease); }
.recent-h { display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 600; color: var(--muted); }
.recent-h > span { display: inline-flex; align-items: center; gap: 6px; }
.recent-list { display: flex; gap: 8px; flex-wrap: wrap; }
.rchip {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  padding: 5px 12px 5px 5px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--surface-2);
  font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease), background-color .2s;
}
.rchip:hover { border-color: var(--accent-line); background: var(--surface); transform: translateY(-2px); }
.rchip .av { border-radius: 50%; }
.rchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rchip b { color: var(--price); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Chi tiết sản phẩm ---------- */
.detail { position: sticky; top: 84px; padding: 22px; min-width: 0; transition: border-color .35s, box-shadow .35s; }
.detail.has { border-color: var(--accent-line); box-shadow: var(--shadow); }
.dt-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 44px 12px; animation: fadeIn .4s var(--ease); }
.dt-empty .art {
  width: 76px; height: 76px; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  animation: floaty 4s ease-in-out infinite;
  margin-bottom: 6px;
}
@keyframes floaty { 50% { transform: translateY(-8px) rotate(-3deg); } }
.dt-empty h3 { margin: 0; font-size: 18px; }
.dt-empty p { margin: 0; color: var(--muted); max-width: 34ch; }
.dt { display: flex; flex-direction: column; gap: 18px; animation: dtIn .5s var(--ease); }
@keyframes dtIn { from { opacity: 0; transform: translateY(14px) scale(.99); } }
.crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 500; }
.dt-title { display: flex; flex-direction: column; gap: 8px; }
.dt-title h3 { margin: 0; font-size: 25px; line-height: 1.2; letter-spacing: -.02em; }
.dt-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dt-badges:empty { display: none; }
.price-box {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: var(--r);
  background: linear-gradient(135deg, color-mix(in srgb, var(--price) 7%, var(--surface)), var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--price) 18%, var(--line));
}
.price-box .lbl { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.price-box .row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price-box .big { font-size: 38px; font-weight: 800; color: var(--price); letter-spacing: -.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.price-box s { color: var(--muted); font-size: 16px; }
.save { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ok); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.fact { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--surface-2); min-width: 0; }
.fact > .ic { color: var(--accent); margin-top: 2px; }
.fact dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 600; font-size: 14.5px; overflow-wrap: anywhere; }
.dt-desc { margin: 0; color: var(--ink-2); line-height: 1.7; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.notes li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); }
.notes li .ic { color: var(--ok); margin-top: 2px; }
.dt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dt-actions .wide { grid-column: 1 / -1; }
.dt-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding-top: 2px; }
@media (max-width: 960px) { .detail { position: relative; top: 0; scroll-margin-top: 80px; } }
@media (max-width: 420px) {
  .detail { padding: 18px 16px; }
  .price-box .big { font-size: 32px; }
  .dt-actions { grid-template-columns: 1fr; }
}

/* ---------- Quy trình ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pline { position: absolute; top: 32px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.pline i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) .3s; }
.process.in .pline i { transform: scaleX(1); }
.pstep { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-inline: 6px; }
.pico {
  position: relative; z-index: 1;
  width: 64px; height: 64px; border-radius: var(--r-lg);
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--accent);
  box-shadow: var(--shadow);
  transition: transform .5s var(--spring), background-color .3s, color .3s;
  margin-bottom: 8px;
}
.js .process .pico { transform: scale(.6); opacity: 0; transition: transform .6s var(--spring), opacity .4s; transition-delay: calc(var(--i) * .25s + .2s); }
.js .process.in .pico { transform: none; opacity: 1; }
.pstep:hover .pico { background: var(--accent); color: var(--on-accent); transform: translateY(-4px) rotate(-6deg); transition-delay: 0s; }
.pno { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pstep h3 { margin: 0; font-size: 17px; }
.pstep p { margin: 0; font-size: 14px; color: var(--muted); max-width: 26ch; }
@media (max-width: 820px) { .process { grid-template-columns: 1fr 1fr; row-gap: 36px; } .pline { display: none; } }
@media (max-width: 420px) { .process { grid-template-columns: 1fr; } }

/* ---------- Cam kết ---------- */
.feats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.js .feats.reveal { opacity: 1; transform: none; }
.js .feats:not(.in) .feat { opacity: 0; }
.js .feats.in .feat { animation: rise .8s var(--ease) backwards; animation-delay: var(--d, 0s); }
.feat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--accent-line); }
.fico { width: 46px; height: 46px; border-radius: var(--r); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); transition: transform .55s var(--spring); margin-bottom: 4px; }
.feat:hover .fico { transform: rotate(-10deg) scale(1.1); }
.feat h3 { margin: 0; font-size: 16.5px; }
.feat p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .feats { grid-template-columns: 1fr; } }

/* ---------- Đánh giá (băng chạy) ---------- */
.marquee {
  overflow: hidden; padding-block: 6px 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.track { display: flex; gap: 16px; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 8px)); } }
.review { width: 330px; flex: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 12px; transition: transform .35s var(--ease), box-shadow .35s; }
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.stars { display: flex; gap: 2px; color: var(--line-2); }
.stars .on { color: var(--star); }
.stars .on svg { fill: currentColor; }
.review blockquote { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.65; }
.rv-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.rv-foot > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.rv-foot small { color: var(--muted); font-size: 12.5px; }
.rv-av { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 13px; }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: 20px; }
  .track { flex-wrap: wrap; justify-content: center; width: auto; animation: none; }
  .track .dup { display: none; }
}

/* ---------- Hỏi đáp ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.qa { overflow: hidden; transition: border-color .3s, box-shadow .3s; }
.qa.open { border-color: var(--accent-line); box-shadow: var(--shadow); }
.qa-q {
  width: 100%; display: flex; align-items: center; gap: 14px;
  padding: 18px 20px; border: 0; background: none; cursor: pointer;
  font-size: 15.5px; font-weight: 600; color: var(--ink); text-align: left;
}
.qa-q:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-lg); }
.qa-q .pm { margin-left: auto; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--ink-2); transition: transform .4s var(--spring), background-color .3s, color .3s; }
.qa.open .pm { transform: rotate(135deg); background: var(--accent); color: var(--on-accent); }
.qa-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.qa.open .qa-a { grid-template-rows: 1fr; }
.qa-a > div { overflow: hidden; min-height: 0; }
.qa-a p { margin: 0; padding: 0 20px 20px; color: var(--ink-2); line-height: 1.7; max-width: 68ch; }

/* ---------- Kêu gọi ---------- */
.cta-sec { padding-top: 0; }
.cta-box {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 40px; border-radius: var(--r-lg);
  background: var(--accent); background-image: var(--grad); color: var(--on-accent);
}
.cta-box::before, .cta-box::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.12); }
.cta-box::before { width: 280px; height: 280px; right: -60px; top: -120px; animation: drift 16s ease-in-out infinite alternate; }
.cta-box::after { width: 160px; height: 160px; left: 30%; bottom: -90px; animation: drift 12s ease-in-out infinite alternate-reverse; }
.cta-box h2 { margin: 0 0 6px; font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; }
.cta-box p { margin: 0; opacity: .88; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cta-light { background: var(--on-accent); color: var(--accent); }
.cta-light:hover { background: var(--on-accent); filter: brightness(1.05); }
.cta-outline { background: transparent; color: var(--on-accent); border-color: color-mix(in srgb, var(--on-accent) 45%, transparent); }
.cta-outline:hover { background: color-mix(in srgb, var(--on-accent) 12%, transparent); }
@media (max-width: 560px) { .cta-box { padding: 28px 22px; } }

/* ---------- Chân trang ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 52px 28px; }
.foot-grid { --cols: 2; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(var(--cols), minmax(0, 1fr)); gap: 32px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.socials a { display: inline-flex; border-radius: 28%; transition: transform .3s var(--spring); }
.socials a:hover { transform: translateY(-3px) scale(1.06); }
.foot li a { display: inline-flex; align-items: center; gap: 8px; }
.fl-list { gap: 12px !important; }
.fl { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); }
.fl-t { display: flex; flex-direction: column; line-height: 1.3; }
.fl-t small { font-size: 12px; color: var(--muted); }
a.fl:hover .fl-t > span { color: var(--accent); }
.foot-links { display: inline-flex; align-items: center; gap: 16px; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--accent); }
@media (max-width: 1000px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-about { grid-column: 1 / -1; } }
.foot h4 { margin: 0 0 14px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.foot p { margin: 12px 0 0; max-width: 36ch; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; }
.foot li > .ic { color: var(--muted); }
.foot a:not(.logo) { color: var(--ink-2); text-decoration: none; transition: color .2s; }
.foot a:not(.logo):hover { color: var(--accent); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }

/* ---------- Thanh liên hệ nhanh (cạnh màn hình) ---------- */
.qc {
  --qw: 264px;
  position: fixed; z-index: 90; top: 50%; right: 0;
  display: flex; align-items: center;
  transform: translate(var(--qw), -50%);
  transition: transform .5s var(--ease);
}
.qc.open { transform: translate(0, -50%); }
.qc.left { right: auto; left: 0; flex-direction: row-reverse; transform: translate(calc(var(--qw) * -1), -50%); }
.qc.left.open { transform: translate(0, -50%); }
.qc-tab {
  width: 40px; height: 48px; flex: none;
  display: grid; place-items: center;
  border: 0; cursor: pointer;
  border-radius: var(--r) 0 0 var(--r);
  background: var(--accent); background-image: var(--grad); color: var(--on-accent);
  box-shadow: -6px 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent);
  transition: width .25s var(--ease), filter .2s;
}
.qc.left .qc-tab { border-radius: 0 var(--r) var(--r) 0; box-shadow: 6px 6px 18px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.qc-tab:hover { width: 46px; filter: brightness(1.08); }
.qc-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qc-tab .ic { transition: transform .5s var(--spring); }
.qc.open .qc-tab .ic { transform: rotate(-12deg) scale(1.08); }
.qc:not(.open) .qc-tab::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  animation: qcPing 2.6s var(--ease) infinite;
}
.qc-tab { position: relative; }
@keyframes qcPing { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 50%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }
.qc-panel {
  width: var(--qw);
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 10px 10px;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-right: 0;
  border-radius: var(--r-lg) 0 0 var(--r-lg);
  box-shadow: var(--shadow-lg);
  max-height: 80vh; overflow-y: auto;
}
.qc.left .qc-panel { border-right: 1px solid var(--line); border-left: 0; border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.qc-h { display: flex; flex-direction: column; gap: 2px; padding: 0 6px 10px; border-bottom: 1px solid var(--line); margin-bottom: 2px; }
.qc-h b { font-size: 15px; }
.qc-h > span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.qc-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
.qc-list { display: flex; flex-direction: column; gap: 2px; }
.qc-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px; border-radius: var(--r);
  color: var(--ink); text-decoration: none;
  transition: background-color .2s, transform .25s var(--ease);
}
a.qc-item:hover { background: var(--surface-2); transform: translateX(-3px); }
.qc.left a.qc-item:hover { transform: translateX(3px); }
.qc-item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.qc-t { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.qc-t b { font-size: 14px; }
.qc-t small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc.open .qc-item { animation: qcIn .4s var(--ease) both; }
.qc.open .qc-item:nth-child(2) { animation-delay: .05s; }
.qc.open .qc-item:nth-child(3) { animation-delay: .1s; }
.qc.open .qc-item:nth-child(4) { animation-delay: .15s; }
.qc.open .qc-item:nth-child(n+5) { animation-delay: .2s; }
@keyframes qcIn { from { opacity: 0; transform: translateX(14px); } }
@media (max-width: 560px) {
  .qc { --qw: min(236px, 74vw); top: auto; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); transform: translate(var(--qw), 0); }
  .qc.open, .qc.left.open { transform: translate(0, 0); }
  .qc.left { transform: translate(calc(var(--qw) * -1), 0); }
  .qc-tab { width: 36px; height: 44px; }
  .qc-tab:hover { width: 36px; }
  .qc-panel { padding: 12px 8px 8px; }
  .qc .ch-ic { width: 32px !important; height: 32px !important; }
}

.to-top {
  position: fixed; z-index: 89;
  right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--shadow); cursor: pointer;
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .3s, transform .35s var(--spring), color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { color: var(--accent); }
.to-top .ring { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); transform: rotate(-90deg); }
.to-top .ring circle { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 131.95; stroke-dashoffset: 131.95; }
@media (max-width: 420px) { .to-top { right: 16px; } }

/* ---------- Tìm kiếm ---------- */
.sbox { width: min(640px, 100%); }
.s-row { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.s-input { flex: 1; min-width: 0; border: 0; outline: none; background: none; color: var(--ink); font-size: 16.5px; }
.s-results { max-height: min(440px, 58vh); overflow-y: auto; padding: 8px; }
.s-group { padding: 10px 10px 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.s-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-sm); cursor: pointer; animation: rise .3s var(--ease) both; }
.s-item.hl { background: var(--accent-soft); }
.s-main { flex: 1; min-width: 0; }
.s-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s-sub { font-size: 12.5px; color: var(--muted); }
.s-pr { font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; white-space: nowrap; }
.s-item > .ic { color: var(--muted); }
.s-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 36px 16px; text-align: center; color: var(--muted); }
.s-empty p { margin: 0; }
.s-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.s-foot kbd { margin-right: 2px; }
@media (max-width: 560px) { .s-foot { display: none; } }

/* ---------- Bảo trì ---------- */
.maint { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px 16px; background: var(--bg); text-align: center; overflow: auto; }
.maint-box { max-width: 460px; display: flex; flex-direction: column; align-items: center; gap: 14px; animation: rise .6s var(--ease); }
.maint-ic { width: 80px; height: 80px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); animation: floaty 4s ease-in-out infinite; }
.maint h1 { margin: 6px 0 0; font-size: 30px; letter-spacing: -.02em; }
.maint p { margin: 0 0 8px; color: var(--ink-2); }

/* ---------- Gói nổi bật dạng dải chạy ngang (điện thoại) ---------- */
.fstrip { display: none; min-width: 0; }
.fs-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fs-hint { font-size: 12px; color: var(--muted); }
.fs-view {
  overflow: hidden; margin-inline: -16px; padding: 4px 0 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.fs-track { display: flex; gap: 10px; width: max-content; padding-left: 16px; animation: fsRun 40s linear infinite; }
.fstrip.paused .fs-track, .fs-view:hover .fs-track { animation-play-state: paused; }
@keyframes fsRun { to { transform: translateX(calc(-50% - 5px)); } }
.fs-card {
  width: 272px; flex: none; min-height: 66px;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  color: var(--ink); text-align: left; cursor: pointer;
  transition: border-color .2s, transform .2s var(--ease);
}
.fs-card:active { transform: scale(.97); border-color: var(--accent-line); }
.fs-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.fs-t b { font-size: 13.5px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fs-t small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-p { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.fs-p b { font-size: 14.5px; font-weight: 800; color: var(--price); font-variant-numeric: tabular-nums; white-space: nowrap; }
.fs-p em { font-style: normal; font-size: 10.5px; font-weight: 700; padding: 1px 6px; border-radius: var(--r-pill); background: var(--price); color: #fff; }
.fs-p em.hot { background: color-mix(in srgb, var(--price) 14%, var(--surface)); color: var(--price); }
@media (max-width: 640px) {
  .feature { display: none !important; }
  .fstrip { display: block; }
  .fstrip[hidden] { display: none; }
  .hero-grid { gap: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-view { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .fs-track { animation: none; }
  .fs-card[aria-hidden="true"] { display: none; }
}


/* =========================================================
   GIAO DIỆN TÙY CHỈNH (Quản trị › Giao diện)
   ========================================================= */

/* Kiểu thẻ: kính mờ */
[data-card="glass"] .card, [data-card="glass"] .fcard, [data-card="glass"] .stepper, [data-card="glass"] .fs-card {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-color: color-mix(in srgb, var(--line) 55%, rgba(255, 255, 255, .4));
}
[data-card="glass"] .opt, [data-card="glass"] .dd-btn, [data-card="glass"] .fact, [data-card="glass"] .price-box, [data-card="glass"] .locked-msg {
  background: color-mix(in srgb, var(--surface-2) 55%, transparent);
}
[data-card="glass"] .section.band { background: color-mix(in srgb, var(--bg-2) 55%, transparent); }
/* Kiểu thẻ: viền mảnh */
[data-card="outline"] .card, [data-card="outline"] .fcard, [data-card="outline"] .stepper, [data-card="outline"] .fs-card {
  background: transparent; box-shadow: none !important; border-color: var(--line-2);
}
[data-card="outline"] .feature::before { display: none; }
[data-card="outline"] .opt, [data-card="outline"] .dd-btn { background: transparent; }

/* Bố cục phần đầu: căn giữa tối giản */
[data-hero="center"] .hero-grid { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; gap: 40px; }
[data-hero="center"] .hero-copy { max-width: 780px; display: flex; flex-direction: column; align-items: center; }
[data-hero="center"] .lead { margin-inline: auto; }
[data-hero="center"] .cta, [data-hero="center"] .stats { justify-content: center; }
[data-hero="center"] .feature { width: min(560px, 100%); text-align: left; }
[data-hero="center"] .hero .b1 { left: 50%; margin-left: -230px; }

/* Kiểu xuất hiện khi cuộn */
.js[data-reveal="zoom"] .reveal { transform: scale(.9); }
.js[data-reveal="side"] .reveal { transform: translateX(-48px); }
.js[data-reveal="blur"] .reveal { transform: none; filter: blur(14px); }
.js[data-reveal="flip"] .reveal { transform: perspective(900px) rotateX(20deg) translateY(24px); transform-origin: 50% 0; }
.js[data-reveal="none"] .reveal { opacity: 1; transform: none; filter: none; transition: none; }
.js[data-reveal] .reveal.in { opacity: 1; transform: none; filter: none; }

/* Hiệu ứng nền (canvas) */
#fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.has-fx .section.band { background: color-mix(in srgb, var(--bg-2) 60%, transparent); }
.has-fx .hero .grid-bg { opacity: .3; }

/* Vầng sáng theo chuột */
.glow {
  position: fixed; left: -260px; top: -260px; width: 520px; height: 520px; z-index: 1;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), color-mix(in srgb, var(--accent2) 6%, transparent) 40%, transparent 68%);
  transition: opacity .4s;
}
.tilting { transition: transform .12s linear !important; will-change: transform; }

/* Nền nhún theo nhạc */
.hero .blob { scale: calc(1 + var(--beat, 0) * .35); }
.logo-mark { scale: calc(1 + var(--beat, 0) * .12); }

/* Tắt chuyển động trang trí */
.no-motion .blob, .no-motion .hl, .no-motion .dt-empty .art, .no-motion .maint-ic,
.no-motion .dot-live, .no-motion .more-hint .ic, .no-motion .badge-sale::after { animation: none !important; }
.no-motion .qc-tab::after, .no-motion .glow { display: none; }

/* Màn hình tải trang */
.loader { display: none; }
.has-loader .loader {
  position: fixed; inset: 0; z-index: 700;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: var(--bg); transition: opacity .5s var(--ease), visibility .5s;
}
.loader.out { opacity: 0; visibility: hidden; }
.ld-mark { width: 64px; height: 64px; border-radius: var(--r-lg); animation: ldSpin 1.1s var(--ease) infinite; }
.ld-name { font-weight: 800; font-size: 18px; letter-spacing: -.01em; color: var(--ink); min-height: 1em; }
.ld-bar { width: 140px; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.ld-bar i { display: block; width: 40%; height: 100%; background-image: var(--grad); background-color: var(--accent); animation: ldBar 1s ease-in-out infinite; }
@keyframes ldSpin { 0% { transform: rotate(0) scale(1); } 50% { transform: rotate(180deg) scale(.88); } 100% { transform: rotate(360deg) scale(1); } }
@keyframes ldBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* Màn hình chào "Vào trang" */
.welcome {
  position: fixed; inset: 0; z-index: 650;
  display: grid; place-items: center; padding: 24px 16px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: opacity .6s var(--ease), visibility .6s;
}
.welcome.out { opacity: 0; visibility: hidden; }
.wc-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; max-width: 440px; animation: rise .8s var(--ease); }
.wc-mark { width: 76px; height: 76px; border-radius: 24%; animation: floaty 4s ease-in-out infinite; }
.wc-box h2 { margin: 6px 0 0; font-size: clamp(26px, 6vw, 36px); letter-spacing: -.02em; }
.wc-box p { margin: 0 0 8px; color: var(--ink-2); }
.wc-box .btn { min-width: 200px; }
.wc-note { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.welcome.out .wc-box { transform: scale(1.06); transition: transform .6s var(--ease); }

/* Nút nhạc nền */
.music-btn {
  position: fixed; z-index: 89; left: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--spring), color .2s;
}
.music-btn:hover { transform: scale(1.08); color: var(--accent); }
.music-btn.on { color: var(--on-accent); background: var(--accent); background-image: var(--grad); border-color: transparent; }
.music-btn.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid var(--accent); opacity: .5; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (max-width: 420px) { .music-btn { left: 16px; } }
