/* Giao diện trang bán JES theo tông màu JES: nền tối, tím #8c8cea là màu nhấn chính,
   dải tím → hồng → vàng chỉ dùng cho điểm nhấn (nút chính, tiêu đề hero, nhãn nổi bật).
   Dùng cho index.html và hai trang pháp lý; trang quản trị vẫn dùng style.css. */
:root {
  --bg: #141419;
  --bg-2: #1b1b21;
  --panel: #20202a;
  --panel-2: #2a2a36;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #fafafa;
  --text-2: #c4c4d2;
  --muted: #a6a6b8;          /* tương phản 7,7:1 trên nền */
  --accent: #8c8cea;         /* tím JES, tương phản 6,2:1 trên nền: đạt AA cho chữ */
  --accent-hover: #a3a3f0;
  --accent-ink: #16161c;
  --accent-soft: rgba(140, 140, 234, .14);
  --pink: #ff6fb5;
  --amber: #ffc65c;
  --lime: #b8f26b;
  --grad: linear-gradient(110deg, #8c8cea, #ff6fb5 55%, #ffc65c);
  --zalo: #0068ff;
  --ok: #4ade80;
  --warn: #ffc65c;
  --bad: #f87171;
  --r: 12px;
  --wrap: 1160px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-h: 'Plus Jakarta Sans', var(--font);
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video { display: block; max-width: 100%; height: auto; } /* height="…" trong HTML chỉ để giữ chỗ, không ép cao */
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-h); font-weight: 700; line-height: 1.18; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); font-weight: 600; }
.skip:focus { left: 16px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
code { padding: 1px 6px; border-radius: 5px; background: var(--panel-2); font: 500 .9em var(--mono); }
.panel-narrow { max-width: 640px; }

section { padding: 88px 0; border-top: 1px solid var(--line); }
.head { max-width: 720px; margin-bottom: 40px; }
.kicker { display: block; font: 500 12px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
h2 { margin-top: 10px; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.25rem); }
.sub { margin-top: 12px; max-width: 64ch; color: var(--text-2); font-size: 1.0625rem; }
.hint { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.hint a, .sub a, .fineprint a { color: var(--accent); }
.fineprint { margin-top: 16px; font-size: 13.5px; color: var(--muted); max-width: 80ch; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text); font: 600 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--panel-2); border-color: #4a4a54; }
.btn-primary { background: var(--grad); border-color: transparent; color: var(--accent-ink); }
.btn-primary:hover { background: var(--grad); filter: brightness(1.08); border-color: transparent; }
.btn-ghost { background: transparent; }
.btn-sm { min-height: 36px; padding: 7px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- thông báo tình trạng bán ---------- */
.notice { background: #1b1b21; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.notice .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 9px 0; text-align: center; }
.notice b { color: var(--text); font-weight: 600; }
.notice a { color: var(--accent); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; border: 1px solid currentColor; font: 600 11px/1.5 var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.tag.warn { color: var(--warn); }

/* ---------- thanh điều hướng ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(20, 20, 25, .86); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; flex: none; text-decoration: none; font: 700 17px var(--font-h); }
.logo img { width: 30px; height: 30px; border-radius: 8px; }
.logo small { font: 500 12.5px var(--font); color: var(--muted); }
.menu { display: flex; gap: 2px; margin-left: auto; }
.menu a { padding: 8px 11px; border-radius: 8px; color: var(--text-2); font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.menu a:hover, .menu a.on { color: var(--text); background: var(--panel); }
.nav-cta { display: flex; align-items: center; gap: 8px; flex: none; }
.menu-btn { display: none; width: 40px; height: 40px; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: transparent; color: var(--text); cursor: pointer; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; width: 16px; height: 2px; border-radius: 2px; background: currentColor; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; }
.menu-btn i::before { top: -5px; }
.menu-btn i::after { top: 5px; }
@media (max-width: 1240px) { .logo small { display: none; } }
@media (max-width: 1100px) {
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; padding: 8px 16px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .menu.open { display: flex; }
  .menu a { padding: 12px; font-size: 16px; }
  .nav-cta { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- hero ---------- */
/* vầng sáng nền bằng radial-gradient: nhẹ máy hơn filter blur, không cần thêm thẻ */
.hero {
  padding: 84px 0 96px; border-top: 0;
  background:
    radial-gradient(620px 440px at 6% -4%, rgba(140, 140, 234, .30), transparent 70%),
    radial-gradient(560px 440px at 96% 26%, rgba(255, 111, 181, .20), transparent 70%),
    radial-gradient(560px 380px at 46% 108%, rgba(255, 198, 92, .13), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 52px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .04); font: 500 12.5px/1.4 var(--mono); color: var(--text-2); }
.eyebrow::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(184, 242, 107, .18); }
.hero h1 { margin-top: 20px; font-size: clamp(2.7rem, 1.4rem + 4.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.035em; } /* slogan */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.subhead { margin-top: 16px; font: 700 clamp(1.25rem, .95rem + 1vw, 1.65rem)/1.3 var(--font-h); letter-spacing: -.015em; color: var(--text); text-wrap: balance; }
.subhead .l { display: block; } /* mỗi câu một khối: trình duyệt cân dòng trong từng câu, không để chữ mồ côi */
.lead { margin-top: 20px; max-width: 54ch; color: var(--text-2); font-size: 1.15rem; }
.facts { list-style: none; display: grid; gap: 8px; margin: 26px 0 0; padding: 0; color: var(--text-2); font-size: 14.5px; }
.facts li { display: flex; align-items: baseline; gap: 10px; }
.facts li::before { content: '✓'; flex: none; color: var(--lime); font-weight: 700; }
.hero-media { margin: 0; }
.frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #000; }
.hero .frame { box-shadow: 0 40px 90px -40px rgba(255, 111, 181, .5), 0 30px 80px -46px rgba(140, 140, 234, .7); }
.frame-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: var(--panel); border-bottom: 1px solid var(--line); color: var(--muted); font: 500 12px var(--mono); }
.frame-bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--bad); flex: none; }
.frame-video { position: relative; }
.frame-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #000; }
.hero-media figcaption { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 900px) {
  .hero { padding: 44px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* nút phát đè lên video (video chỉ tải khi bấm) */
.play { position: absolute; inset: 0; display: grid; place-items: center; width: 100%; border: 0; background: rgba(0, 0, 0, .28); color: #fff; cursor: pointer; }
.play span { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(11, 11, 13, .86); border: 1px solid var(--line-2); font: 600 15px var(--font); }
.play span::before { content: ''; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--accent); }
.play:hover span { border-color: var(--accent); }

/* ---------- quy trình 5 bước ---------- */
.flow { display: grid; gap: 16px; }
.flow-step { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.flow-step .n { font: 500 13px var(--mono); color: var(--accent); }
.flow-step h3 { margin: 6px 0 14px; font-size: 1.375rem; }
.rows { display: grid; margin: 0; }
.rows > div { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-top: 1px solid var(--line); }
.rows dt { padding-top: 2px; font: 500 12px/1.6 var(--mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rows dd { margin: 0; color: var(--text-2); font-size: 15px; }
.rows .key dd { color: var(--text); }
.example { margin-top: 16px; padding: 10px 14px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--accent-soft); color: var(--text-2); font-size: 14px; }
.example b { color: var(--text); font-weight: 600; }
.shot { margin: 0; }
.shot img { width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #0e0e11; }
.shot img.pan { aspect-ratio: 4 / 3; object-fit: cover; object-position: top; }
.shot img.photo { aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption { margin-top: 8px; color: var(--muted); font-size: 13px; }
@media (max-width: 900px) {
  .flow-step { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .flow-step .shot { order: -1; max-width: 560px; }
  .rows > div { grid-template-columns: 1fr; gap: 2px; }
}
@media (max-width: 560px) { .flow-step { gap: 16px; padding: 18px; } .rows > div { padding: 9px 0; } }

/* ---------- video demo + danh sách ---------- */
.player { position: relative; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: #000; }
.player video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.player.vertical { max-width: 380px; margin-inline: auto; }
.player.vertical video { aspect-ratio: 9 / 16; }
.playlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 16px; }
.pl-item { display: grid; align-content: start; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.pl-item:hover { border-color: var(--line-2); }
.pl-item.on { border-color: var(--accent); }
.pl-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #000; }
.pl-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pl-thumb span { position: absolute; right: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .78); font: 500 11px var(--mono); }
.pl-item b { font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.pl-item small { color: var(--muted); font-size: 13px; line-height: 1.45; }

/* ---------- tính năng theo vấn đề ---------- */
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.feature .pain { color: var(--muted); font-size: 14px; }
.feature h3 { margin: 6px 0 14px; font-size: 1.2rem; }
.feature dl { display: grid; gap: 10px; margin: 0; }
.feature dt { font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.feature dd { margin: 3px 0 0; color: var(--text-2); font-size: 15px; }
.feature .limit dd { padding-left: 10px; border-left: 2px solid var(--line-2); }
.extra { margin-top: 16px; color: var(--text-2); font-size: 15px; }
.extra a { color: var(--accent); }
@media (max-width: 780px) { .features { grid-template-columns: 1fr; } .feature { padding: 20px; } }

/* ---------- lưới ô có đường kẻ: "JES không làm gì", chính sách ---------- */
.grid-cells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--line); }
.grid-cells > div { padding: 22px; background: var(--bg-2); }
.grid-cells h3 { font-size: 1.02rem; }
.grid-cells p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.grid-cells p a { color: var(--accent); }
@media (max-width: 900px) { .grid-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .grid-cells { grid-template-columns: 1fr; } .grid-cells > div { padding: 18px; } }

/* ---------- thử nghiệm thực tế ---------- */
.cases { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; align-items: start; }
.case { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.case > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.case-body { display: grid; gap: 14px; padding: 20px; }
.case h3 { font-size: 1.15rem; }
.case p { color: var(--text-2); font-size: 14.5px; }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.metrics div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.metrics b { display: block; font: 700 1.15rem/1.3 var(--font-h); font-variant-numeric: tabular-nums; }
.metrics span { color: var(--muted); font-size: 12.5px; }
.conditions { display: grid; gap: 4px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.conditions div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; }
.conditions dt { color: var(--muted); }
.conditions dd { margin: 0; color: var(--text-2); }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr; } }

/* ---------- tương thích ---------- */
.compat { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); }
.compat-row { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; padding: 20px 22px; background: var(--bg-2); border-top: 1px solid var(--line); }
.compat-row:first-child { border-top: 0; }
.compat-row h3 { font-size: 1rem; }
.compat-row ul { display: grid; gap: 7px; margin: 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.compat-row li b { color: var(--text); font-weight: 600; }
.compat-row .tag { margin-left: 6px; vertical-align: 1px; }
@media (max-width: 760px) { .compat-row { grid-template-columns: 1fr; gap: 10px; padding: 18px; } }

/* ---------- tải về ---------- */
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl { display: flex; align-items: center; gap: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg-2); text-decoration: none; transition: border-color .15s; }
.dl:hover { border-color: var(--accent); }
.dl-os { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--panel-2); color: var(--text-2); font: 600 12px var(--mono); }
.dl b { display: block; font-size: 16px; }
.dl small { color: var(--muted); font-size: 13.5px; }
.dl-phone { margin-top: 16px; padding: 16px 20px; border: 1px solid var(--accent); border-radius: var(--r); background: var(--bg-2); }
.dl-phone p { margin: 0 0 12px; color: var(--text-2); }
.dl-phone b { color: var(--text); }
.dl-steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 24px 0 0; padding: 0; }
.dl-steps li { counter-increment: s; padding-top: 16px; border-top: 1px solid var(--line-2); color: var(--text-2); font-size: 15px; }
.dl-steps li::before { content: counter(s, decimal-leading-zero); display: block; margin-bottom: 8px; font: 500 12px var(--mono); color: var(--accent); }
.dl-steps b { color: var(--text); font-weight: 600; }
.trial { margin-top: 28px; }
@media (max-width: 760px) { .downloads, .dl-steps { grid-template-columns: 1fr; } }

/* ---------- bảng giá ---------- */
.toggle { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg-2); }
.toggle button { min-height: 40px; padding: 8px 16px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 600 14.5px var(--font); cursor: pointer; }
.toggle button.on { background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.toggle .off { margin-left: 6px; font: 600 11.5px var(--mono); color: var(--accent); }
.mode-note { margin-top: 14px; max-width: 72ch; color: var(--text-2); font-size: 15px; }
.mode-note b { color: var(--text); font-weight: 600; }
/* số cột theo số gói đang bán (app.js đặt --n và data-n): bán tạm 3 gói, bảng giá đầy đủ 4 gói */
.plans { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.plan.hot { border-color: var(--accent); box-shadow: 0 24px 60px -34px rgba(255, 111, 181, .55); }
.ribbon { position: absolute; top: -11px; left: 20px; padding: 2px 10px; border-radius: 999px; background: var(--grad); color: var(--accent-ink); font: 700 11px/1.6 var(--mono); letter-spacing: .04em; }
.plan h3 { font-size: 1.05rem; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 12px; font-variant-numeric: tabular-nums; }
.price b { font: 700 2rem/1.1 var(--font-h); letter-spacing: -.02em; }
.price s { color: var(--muted); font-size: 15px; }
.per { margin-top: 4px; color: var(--muted); font-size: 14px; }
.terms { display: grid; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
.terms div { display: flex; justify-content: space-between; gap: 12px; }
.terms dt { color: var(--muted); }
.terms dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan ul { list-style: none; display: grid; gap: 7px; margin: 16px 0 20px; padding: 0; color: var(--text-2); font-size: 14px; }
.plan li { display: flex; gap: 8px; }
.plan li::before { content: '✓'; color: var(--lime); font-weight: 700; }
.plan .btn { margin-top: auto; }
.policies { margin-top: 28px; }
.plans-incl { display: none; margin-top: 18px; font-size: 14px; }
.plans-incl b { font-weight: 600; }
.plans-incl ul { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 7px 16px; margin: 8px 0 0; padding: 0; color: var(--text-2); }
.plans-incl li { display: flex; gap: 8px; }
.plans-incl li::before { content: '✓'; color: var(--lime); font-weight: 700; }
@media (max-width: 1080px) {
  .plans:not([data-n="3"]) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* 3 gói vẫn 3 cột để dễ so: thẻ gọn lại, quyền lợi chung ghi một lần bên dưới */
  .plans[data-n="3"] .plan { padding: 18px; }
  .plans[data-n="3"] .plan ul { display: none; }
  .plans[data-n="3"] .plan .btn { margin-top: 18px; }
  .plans[data-n="3"] ~ .plans-incl { display: block; }
}
/* một cột: gói "tiết kiệm nhất" lên đầu, quyền lợi giống nhau ở mọi gói ghi một lần dưới các thẻ */
@media (max-width: 720px) {
  .plans, .plans:not([data-n="3"]) { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
  .plan.hot { order: -1; }
  .plan ul { display: none; }
  .plan .btn { margin-top: 18px; }
  .plans-incl { display: block; max-width: 520px; }
}

/* ---------- mua & gia hạn ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.renew { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.panel { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > label, .label { color: var(--text-2); font-size: 13.5px; font-weight: 500; }
.input { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--text); font: 15px var(--font); }
.input::placeholder { color: #66666f; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.mono { font-family: var(--mono); letter-spacing: .02em; }
.input.err { border-color: var(--bad); animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: grid; gap: 2px; min-width: 96px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); color: var(--text); font: 600 14px var(--font); text-align: left; cursor: pointer; }
.chip small { color: var(--muted); font-size: 12.5px; font-weight: 400; }
.chip.on { border-color: var(--accent); background: var(--accent-soft); }
.check { display: flex; align-items: flex-start; gap: 10px; margin: 4px 0 14px; color: var(--text-2); font-size: 14.5px; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); }
.check a { color: var(--accent); }
.check.err { color: var(--bad); }
.invoice-zalo { margin: 2px 0 14px; }
@media (max-width: 720px) { .check { padding: 7px 0; margin-block: 0 8px; } .check input { width: 20px; height: 20px; margin-top: 1px; } }
.invoice-box { margin-bottom: 14px; padding: 14px; border: 1px dashed var(--line-2); border-radius: 10px; }
.sum-line { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.sum-line span { color: var(--muted); }
.sum-line b { font-weight: 600; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; }
.total b { font: 700 1.5rem var(--font-h); font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid; border-radius: 999px; font: 600 11.5px/1.4 var(--mono); letter-spacing: .04em; }
.status.wait { color: var(--warn); border-color: rgba(231, 196, 106, .45); }
.status.ok { color: var(--ok); border-color: rgba(127, 209, 139, .45); }
.status.bad { color: var(--bad); border-color: rgba(239, 128, 128, .45); }
.spinner { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.qr-box:empty { display: none; }
.qr-box { margin-top: 4px; }
.qr-img { width: 220px; height: 220px; margin: 16px auto; padding: 8px; border-radius: 10px; background: #fff; }
.qr-demo { display: grid; place-items: center; width: 220px; height: 220px; margin: 16px auto; padding: 18px; border: 1px dashed var(--warn); border-radius: 10px; background: repeating-linear-gradient(45deg, #141419 0 10px, #19191f 10px 20px); color: var(--warn); font: 600 13px/1.5 var(--mono); text-align: center; }
.kv { display: grid; margin-top: 8px; }
.kv div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.kv span { min-width: 92px; color: var(--muted); }
.kv b { flex: 1; font-weight: 600; word-break: break-all; }
.copy { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 7px; background: transparent; color: var(--text-2); font: 500 12.5px var(--font); cursor: pointer; }
.copy:hover { border-color: var(--accent); color: var(--text); }
@media (pointer: coarse) { .copy { min-height: 34px; padding: 6px 12px; } } /* màn cảm ứng: nút Chép số tài khoản, số tiền, mã đơn dễ bấm hơn */
.keybox { margin: 14px 0; padding: 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); font: 600 1.15rem var(--mono); letter-spacing: .04em; text-align: center; word-break: break-all; }
.success-title { margin-top: 14px; font-size: 1.35rem; }
.empty { padding: 18px; border: 1px dashed var(--line-2); border-radius: 10px; color: var(--muted); font-size: 14.5px; text-align: center; }
.demo-note { margin-bottom: 16px; padding: 12px 14px; border: 1px solid rgba(231, 196, 106, .45); border-radius: 10px; background: rgba(231, 196, 106, .07); color: var(--text-2); font-size: 14px; }
.demo-note b { color: var(--warn); font-weight: 600; }
.form-note { margin-top: 14px; padding: 12px 14px; border: 1px solid rgba(231, 196, 106, .45); border-radius: 10px; background: rgba(231, 196, 106, .07); color: var(--text-2); font-size: 14px; }
.form-note b { color: var(--text); font-weight: 600; }
.form-note a { color: var(--accent); }
.success-text { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.success-text b { color: var(--text); font-weight: 600; }
.steps-list { display: grid; gap: 12px; margin: 16px 0 20px; padding-left: 20px; color: var(--text-2); }
.steps-list b { color: var(--text); font-weight: 600; }
.msg { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); font-size: 14.5px; }
.msg span { flex: 1; color: var(--text); }
.lookup { display: flex; gap: 8px; }
.lookup .input { flex: 1; min-width: 0; }
.linkbtn { padding: 0; border: 0; background: none; color: var(--accent); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lic { display: none; margin-top: 16px; }
.lic.show { display: block; }
.lic-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.bar { height: 6px; margin: 14px 0 8px; overflow: hidden; border-radius: 99px; background: var(--line); }
.bar i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .6s ease; }
.setting { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 10px; }
.setting p { margin-top: 2px; color: var(--muted); font-size: 13.5px; }
.switch { position: relative; flex: none; width: 44px; height: 26px; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); pointer-events: none; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.newexp { display: flex; align-items: center; gap: 10px; margin: 16px 0 4px; font-variant-numeric: tabular-nums; }
.newexp span { color: var(--muted); }
.newexp .arrow { color: var(--accent); }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 100; max-width: calc(100% - 32px); padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--panel-2); color: var(--text); font-size: 14.5px; opacity: 0; transform: translate(-50%, 16px); transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 900px) {
  .checkout, .renew { grid-template-columns: 1fr; }
  #buyOnline > aside { order: -1; } /* điện thoại: thấy gói và tổng tiền trước khi điền; mã QR cũng hiện ngay trên form */
}
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } .panel { padding: 18px; } }

/* ---------- bằng chứng từ CMS (chỉ hiện khi có dữ liệu thật) ---------- */
.proof-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.stat b { display: block; font: 700 1.8rem var(--font-h); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 14px; }
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
.quote { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.quote blockquote { margin: 0; color: var(--text); }
.who { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; }
.who small { display: block; color: var(--muted); }
.who a { color: var(--accent); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--panel-2); object-fit: cover; font-weight: 600; }
.brands { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-top: 24px; color: var(--muted); }
.brands img { height: 28px; width: auto; opacity: .8; }

/* ---------- hỏi đáp & hỗ trợ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 18px 40px 18px 0; font-size: 16.5px; font-weight: 600; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 15px; color: var(--muted); font: 400 22px var(--font); }
.faq details[open] summary::after { content: '–'; }
.faq p { max-width: 72ch; padding-bottom: 18px; color: var(--text-2); }
.support { margin-top: 48px; }

/* ---------- chân trang ---------- */
footer { padding: 48px 0 32px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.foot p { margin-top: 10px; max-width: 34ch; color: var(--muted); }
.foot h4 { margin-bottom: 12px; font: 600 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.foot ul { list-style: none; display: grid; gap: 8px; margin: 0; padding: 0; }
.foot a { color: var(--text-2); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
footer > .foot-base { margin-top: 0; padding-top: 0; border-top: 0; } /* trang pháp lý: chân trang một dòng */
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) {
  .foot { grid-template-columns: 1fr 1fr; gap: 28px 16px; }
  .foot > div:first-child { grid-column: 1 / -1; }
  .foot ul { gap: 0; }
  .foot ul a { display: inline-block; padding: 9px 0; overflow-wrap: anywhere; }
}

/* ---------- trang pháp lý ---------- */
.prose { max-width: 760px; padding: 56px 0 80px; }
.prose h1 { margin: 10px 0 6px; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.5rem); }
.prose h2 { margin: 34px 0 10px; font-size: 1.25rem; }
.prose p, .prose li { color: var(--text-2); }
.prose ul { display: grid; gap: 6px; padding-left: 20px; }
.prose a { color: var(--accent); }
.draft { margin: 18px 0 8px; padding: 12px 14px; border: 1px solid rgba(231, 196, 106, .45); border-radius: 10px; background: rgba(231, 196, 106, .07); color: var(--text-2); font-size: 14.5px; }

/* ---------- nhóm Zalo hỏi đáp: màu xanh Zalo để khách nhận ra ngay ---------- */
.zalo-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--zalo); color: #fff; font: 700 12px var(--font); letter-spacing: -.01em; }
.zalo-group { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 9px 16px 9px 9px; border: 1px solid rgba(0, 104, 255, .5); border-radius: 14px; background: rgba(0, 104, 255, .12); text-decoration: none; transition: background .15s; }
.zalo-group:hover { background: rgba(0, 104, 255, .2); }
.zalo-group b { display: block; font-size: 15px; font-weight: 600; }
.zalo-group small { display: block; color: var(--muted); font-size: 13px; }
.zalo-float { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 60; display: flex; align-items: center; gap: 10px; padding: 6px 16px 6px 6px; border-radius: 999px; background: var(--zalo); color: #fff; font: 600 14px var(--font); text-decoration: none; box-shadow: 0 12px 30px -10px rgba(0, 104, 255, .7); }
.zalo-float .zalo-ic { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--zalo); font-size: 11px; }
.zalo-float:hover { filter: brightness(1.08); }
.zalo-float { transition: opacity .2s, transform .2s, visibility .2s; }
.zalo-float.away { opacity: 0; visibility: hidden; transform: translateY(8px); }
@media (max-width: 560px) { .zalo-float { padding: 6px; } .zalo-float-t { display: none; } }
@media print { .zalo-float { display: none; } }

/* điện thoại: thanh Zalo / Bảng giá / Dùng thử cố định cuối màn hình, thay cho nút Zalo nổi.
   sections.js bỏ "off" khi đã cuộn qua nút ở đầu trang, thêm lại khi đang xem Tải về, Mua key hay chân trang */
.mbar { display: none; }
@media (max-width: 720px) {
  .zalo-float { display: none; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(20, 20, 25, .94); backdrop-filter: blur(12px); border-top: 1px solid var(--line-2);
    transition: transform .25s, visibility .25s; }
  .mbar .btn { min-height: 44px; padding: 10px 12px; font-size: 15px; }
  .mbar .zalo-ic { width: 44px; height: 44px; text-decoration: none; }
  .mbar.off { transform: translateY(110%); visibility: hidden; }
  body.mbar-on .nav-cta .btn-primary { display: none; }
}
@media (max-width: 720px) and (prefers-reduced-motion: reduce) { .mbar { transition: none; } }
@media print { .mbar { display: none !important; } }

/* ---------- tải về: phiên bản, có gì mới, mã kiểm tra file ---------- */
.dl-ver { margin: -16px 0 16px; color: var(--text-2); font-size: 14.5px; }
.dl-ver .tag { color: var(--lime); }
.dl-ver b { color: var(--text); }
.whatsnew { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-2); }
.whatsnew h3 { margin-top: 10px; font-size: 1.1rem; }
.whatsnew h3 small { margin-left: 8px; color: var(--muted); font: 500 13px var(--mono); }
.whatsnew .wn-title { margin-top: 4px; color: var(--accent); font-weight: 600; font-size: 15px; }
.whatsnew ul { display: grid; gap: 7px; margin: 10px 0 0; padding-left: 20px; color: var(--text-2); font-size: 14.5px; }
.whatsnew details { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.whatsnew summary, .dl-sum summary { padding: 9px 0; color: var(--text-2); font-weight: 600; font-size: 14.5px; cursor: pointer; }
.dl-sum { margin-top: 14px; }
.dl-sum p { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.dl-sum code { font-size: 12px; word-break: break-all; }
@media (max-width: 560px) { .whatsnew { padding: 18px; } }
