/* SINH TỰ ĐỘNG từ khung/assets/css/site.css bằng tools/build_theme_css.py - KHÔNG sửa tay. */
/* Arcpoly - khung giao diện mới (minimalist trắng + cam #f54d2d)
   Một tệp CSS dùng chung cho mọi trang; sau này chuyển thẳng vào theme `arcpoly`. */

:root {
  --brand: #f54d2d;
  --brand-ink: #d83a1c;
  --brand-soft: #fff1ed;
  --ink: #141414;
  --ink-2: #4a4a4a;
  --muted: #8a8a8a;
  --line: #ececec;
  --line-2: #f4f4f4;
  --bg: #ffffff;
  --bg-2: #fafafa;
  --radius: 14px;
  --radius-lg: 22px;
  --wrap: 1200px;
  --gutter: 24px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.05);
  --shadow-hover: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(0,0,0,.08);
}

.apx *, .apx *::before, .apx *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
.apx {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.apx img { max-width: 100%; display: block; }
.apx a { color: inherit; text-decoration: none; }
.apx button { font: inherit; color: inherit; cursor: pointer; }
.apx h1, .apx h2, .apx h3, .apx h4 { margin: 0; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
.apx p { margin: 0; }
.apx :focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.apx .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.apx .section { padding: 96px 0; }
.apx .section--tight { padding: 64px 0; }
.apx .section--alt { background: var(--bg-2); }

.apx .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.apx .eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.apx .h-sec { font-size: clamp(28px, 3.4vw, 40px); margin-top: 12px; }
.apx .lead { color: var(--ink-2); font-size: 18px; max-width: 620px; margin-top: 14px; }
.apx .sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.apx .muted { color: var(--muted); }

/* ---------- Nút ---------- */
.apx .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: .18s ease;
}
.apx .btn--brand { background: var(--brand); color: #fff; }
.apx .btn--brand:hover { background: var(--brand-ink); }
.apx .btn--ghost { border-color: var(--line); background: #fff; }
.apx .btn--ghost:hover { border-color: var(--ink); }
.apx .btn--sm { height: 38px; padding: 0 16px; font-size: 14px; }
.apx .btn--block { width: 100%; }
.apx .link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand); }
.apx .link-arrow svg { transition: transform .18s; }
.apx .link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Đầu trang ---------- */
.apx .ap-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.88);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.apx .ap-header .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.apx .logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.apx .logo img { width: 30px; height: 30px; }
.apx .nav { display: flex; gap: 4px; margin-left: 8px; }
.apx .nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: .15s;
}
.apx .nav a:hover { color: var(--ink); background: var(--line-2); }
.apx .nav a.is-active { color: var(--brand); }
.apx .head-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.apx .lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.apx .lang button, .apx .lang a {
  border: 0; background: none; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); line-height: 1.4;
}
.apx .lang button.is-on, .apx .lang a.is-on { background: var(--ink); color: #fff; }
.apx .nav .nav-auth { display: none; }
.apx .icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; border: 1px solid transparent; background: none;
}
.apx .icon-btn:hover { background: var(--line-2); }
.apx .icon-btn .count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.apx .icon-btn .count[data-n="0"] { display: none; }
.apx .avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; font-weight: 700; font-size: 13px;
}
.apx .ap-menu { display: none; }

/* ---------- Hero ---------- */
.apx .hero { padding: 88px 0 56px; text-align: center; }
.apx .hero h1 { font-size: clamp(36px, 5.2vw, 64px); max-width: 1000px; text-wrap: balance; margin: 18px auto 0; letter-spacing: -.035em; }
.apx .hero h1 em { font-style: normal; color: var(--brand); }
.apx .hero .lead { margin: 20px auto 0; text-align: center; }
.apx .hero-actions { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* ---------- 3 sản phẩm chủ lực ---------- */
.apx .flagships { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.apx .flag {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; transition: .25s ease; min-height: 560px;
}
.apx .flag:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); border-color: transparent; }
.apx .flag__media { position: relative; aspect-ratio: 4 / 3.3; background: var(--bg-2); }
/* Lớp ảnh riêng: cắt khi phóng to lúc rê chuột; icon nằm ngoài lớp này nên lồi ra mép dưới mà không bị che */
.apx .flag__img { position: absolute; inset: 0; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.apx .flag__img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .6s ease; }
.apx .flag:hover .flag__img img { transform: scale(1.04); }
.apx .flag__icon {
  position: absolute; z-index: 2; left: 20px; bottom: -28px; width: 60px; height: 60px; border-radius: 18px;
  border: 4px solid #fff; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); overflow: hidden;
}
.apx .flag__icon img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.apx .flag__body { padding: 44px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.apx .flag__tag { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.apx .flag__name { font-size: 26px; margin-top: 6px; }
.apx .flag__desc { color: var(--ink-2); margin-top: 10px; font-size: 15px; }
.apx .flag__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.apx .chip { font-size: 12px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.apx .flag__foot {
  margin-top: auto; padding-top: 20px; display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--line-2);
}
.apx .flag__users { font-size: 13px; color: var(--muted); }
.apx .flag__users b { color: var(--ink); font-size: 18px; font-weight: 700; margin-right: 4px; }

/* ---------- Thống kê ---------- */
.apx .stats {
  display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; overflow: hidden;
}
.apx .stat { padding: 28px 24px; border-left: 1px solid var(--line); }
.apx .stat:first-child { border-left: 0; }
.apx .stat__val { font-size: clamp(30px, 3.2vw, 42px); font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.apx .stat__val small { font-size: .5em; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.apx .stat__label { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.apx .stat__sub { color: var(--muted); font-size: 12px; margin-top: 8px; }
.apx .stat--live .stat__val { color: var(--brand); }
.apx .live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--brand); margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(245,77,45,.5); animation: pulse 1.8s infinite; vertical-align: middle;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(245,77,45,0); } 100% { box-shadow: 0 0 0 0 rgba(245,77,45,0); } }
.apx .stats-note { margin-top: 12px; font-size: 12px; color: var(--muted); text-align: right; }

/* ---------- Plugin + app phụ ---------- */
.apx .wide-card {
  display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; background: #fff; transition: .25s;
}
.apx .wide-card:hover { box-shadow: var(--shadow-hover); }
.apx .wide-card__body { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.apx .wide-card__media { background: var(--brand-soft); display: grid; place-items: center; padding: 32px; min-height: 280px; }
.apx .wide-card__media img { max-height: 220px; border-radius: 28px; }
.apx .kv { display: flex; gap: 28px; margin-top: 6px; flex-wrap: wrap; }
.apx .kv div b { display: block; font-size: 22px; letter-spacing: -.02em; }
.apx .kv div span { font-size: 13px; color: var(--muted); }

.apx .apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 20px; }
.apx .app {
  display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #fff; transition: .2s;
}
.apx .app:hover { border-color: var(--ink); }
.apx .app img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.apx .app__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.apx .app__meta { font-size: 12px; color: var(--muted); }
.apx .tag-free { color: #17803d; }
.apx .tag-paid { color: var(--brand); }

/* ---------- Trang riêng của app ---------- */
.apx .app-head { display: flex; gap: 32px; align-items: flex-start; }
.apx .thumb.thumb--app { width: 120px; height: 120px; border-radius: 28px; box-shadow: var(--shadow); }
.apx .app-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.apx .app-meta span { font-weight: 500; }
.apx .app-intro { max-width: 760px; margin: 0 0 40px; font-size: 20px; color: var(--ink); line-height: 1.55; }
.apx .feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.apx .feat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.apx .feat b { display: block; font-size: 16px; }
.apx .feat b::before { content: ""; display: block; width: 18px; height: 3px; border-radius: 3px; background: var(--brand); margin-bottom: 14px; }
.apx .feat p { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.apx .steps { list-style: none; counter-reset: st; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.apx .steps li { counter-increment: st; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.apx .steps li::before { content: counter(st); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; margin-bottom: 14px; }
.apx .steps b { display: block; }
.apx .steps span { color: var(--ink-2); font-size: 14px; }
.apx .buy { margin-top: 24px; }
.apx .buy__plans { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; margin-bottom: 18px; }
.apx .buy__plans button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.apx .buy__plans button.is-on { background: var(--ink); color: #fff; }
.apx .buy__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.apx .buy__price { margin-right: 8px; }
.apx .buy__price b { font-size: 34px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.apx .buy__price small { color: var(--muted); font-size: 14px; }
.apx .news { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px; align-items: start; }
.apx .news ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.apx .news li { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); }

/* ---------- Video, thư viện ảnh, danh sách tải ---------- */
.apx .vids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.apx .vid b { display: block; margin-top: 10px; font-size: 15px; }
.apx .vid span { font-size: 13px; color: var(--muted); }
.apx .yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); overflow: hidden; background: #111 center / cover no-repeat; cursor: pointer; padding: 0; }
.apx .yt__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 999px; background: var(--brand); box-shadow: 0 6px 20px rgba(245,77,45,.4); transition: transform .2s; }
.apx .yt__play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 16px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.apx .yt:hover .yt__play { transform: scale(1.08); }
.apx .yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.apx .gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.apx .gallery figure { margin: 0; }
.apx .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--bg-2); }
.apx .gallery figcaption { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.apx .dl-list { display: grid; gap: 12px; }
.apx .dl-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.apx .dl-row__info b { display: block; font-size: 16px; }
.apx .dl-row__info .muted { font-size: 14px; }
.apx .dl-row__act { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.apx .steps--5 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

/* ---------- Trang tài khoản (v2) ---------- */
.apx .acc { display: grid; gap: 20px; }
.apx .acc__title { font-size: 26px; margin-bottom: 6px; }
.apx .acc-hero { display: flex; align-items: center; gap: 18px; }
.apx .avatar--xl { width: 72px; height: 72px; font-size: 28px; }
.apx .avatar--img { overflow: hidden; padding: 0; background: var(--line-2); }
.apx .avatar--img img { width: 100%; height: 100%; object-fit: cover; }
.apx .acc-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; background: #fff; }
.apx .acc-card h3 { font-size: 17px; margin-bottom: 16px; }
.apx .acc-dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0; }
.apx .acc-dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.apx .acc-dl dt { color: var(--muted); font-size: 14px; }
.apx .acc-dl dd { margin: 0; font-weight: 600; font-size: 14px; text-align: right; word-break: break-all; }
.apx .acc-hint { font-size: 13px; margin-top: 14px; }
.apx .acc-google { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.apx .acc-google b { display: block; }
.apx .acc-google .muted { font-size: 14px; }
.apx .acc-google__pic, .apx .acc-google__g { width: 44px; height: 44px; border-radius: 999px; flex: none; }
.apx .acc-google__g { display: grid; place-items: center; background: var(--line-2); font-weight: 700; color: #4285f4; }
.apx .acc-form { display: grid; gap: 14px; max-width: 460px; }
.apx .acc-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }
.apx .acc-empty .btn { margin-top: 12px; }
.apx .ap-note { padding: 12px 16px; border-radius: 12px; background: var(--line-2); color: var(--ink-2); font-size: 14px; }
.apx .ap-note--ok { background: #e9f8ee; color: #17803d; }
.apx .ap-note--err { background: #fdecea; color: #b42318; }
.apx .ap-note--warn { background: #fff6e5; color: #a15c00; }
.apx .dev-list { display: grid; gap: 12px; }
.apx .dev { display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.apx .dev__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.apx .dev__info b { margin-right: 8px; }
.apx .dev__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.apx .dev__meta code { font-size: 12px; }
.apx .dev .btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Thẻ chung (khoá học, bài viết) ---------- */
.apx .grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.apx .card { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; transition: .25s; display: flex; flex-direction: column; }
.apx .card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.apx .card__media { aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.apx .card__media img { width: 100%; height: 100%; object-fit: cover; }
.apx .card__media--ph { display: grid; place-items: center; color: var(--muted); font-size: 13px; background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 10px, #f3f3f3 10px, #f3f3f3 20px); }
.apx .card__body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.apx .card__meta { font-size: 12px; color: var(--muted); display: flex; gap: 10px; }
.apx .card__title { font-size: 18px; line-height: 1.35; }
.apx .card__foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; }
.apx .price { font-weight: 700; }
.apx .price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.apx .badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); }
.apx .badge--free { background: #e9f8ee; color: #17803d; }

/* ---------- Đầu trang con ---------- */
.apx .page-head { padding: 72px 0 40px; border-bottom: 1px solid var(--line); }
.apx .page-head h1 { font-size: clamp(32px, 4.6vw, 52px); margin-top: 12px; }

/* ---------- Thẻ tab ---------- */
.apx .tabs { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; flex-wrap: wrap; }
.apx .tabs button { border: 0; background: none; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--ink-2); }
.apx .tabs button.is-on { background: var(--ink); color: #fff; }
.apx [data-panel] { display: none; }
.apx [data-panel].is-on { display: block; }

/* ---------- Bảng giá ---------- */
.apx .plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; margin-top: 32px; }
.apx .plan { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; background: #fff; position: relative; }
.apx .plan--hot { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.apx .plan--hot::before {
  content: attr(data-hot); position: absolute; top: -12px; left: 24px; background: var(--brand); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.apx .plan__name { font-weight: 600; color: var(--ink-2); }
.apx .plan__price { font-size: 32px; font-weight: 700; letter-spacing: -.03em; }
.apx .plan__price small { font-size: 14px; color: var(--muted); font-weight: 500; }
/* Số tiền một dòng (không rớt chữ ₫), phần "/ năm" xuống dòng riêng - 5 gói vẫn vừa thẻ hẹp */
.apx .plan__price { white-space: nowrap; font-size: clamp(22px, 2.1vw, 30px); }
.apx .plan__price small { display: block; white-space: normal; margin-top: 4px; }
.apx .plan ul { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.apx .plan li::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.apx .plan .btn { margin-top: auto; }
.apx .note { margin-top: 24px; padding: 14px 18px; border-radius: var(--radius); background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; }
.apx .table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.apx .table th, .apx .table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); }
.apx .table th { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.apx .table td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Thumbnail sản phẩm (ảnh DB, thiếu => thumb-mac-dinh.svg) ---------- */
.apx .thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; background: var(--brand); }
.apx .thumb--lg { width: 64px; height: 64px; border-radius: 16px; }
.apx .thumb--wide { width: 88px; height: 50px; border-radius: 10px; }
.apx .thumb--cover { width: 100%; height: 100%; border-radius: 0; }
.apx .thumb--hero { width: 200px; height: 200px; border-radius: 28px; }
.apx .cell-prod { display: flex; align-items: center; gap: 14px; }
.apx .cell-prod b { font-weight: 600; display: block; line-height: 1.35; }
.apx .cell-prod span { font-size: 13px; color: var(--muted); }
.apx .prod-head { display: flex; align-items: center; gap: 16px; margin-top: 32px; }
.apx .prod-head h2 { font-size: 24px; }
.apx .prod-head p { color: var(--muted); font-size: 15px; margin-top: 2px; }
.apx .tabs button { display: inline-flex; align-items: center; }
.apx .tabs button img { display: inline-block; width: 22px; height: 22px; border-radius: 6px; margin-right: 8px; vertical-align: -6px; object-fit: cover; }

/* ---------- Form ---------- */
.apx .field { display: grid; gap: 6px; }
.apx .field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.apx .input, .apx .textarea, .apx select.input {
  width: 100%; height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font: inherit; background: #fff;
}
.apx .textarea { height: 140px; padding: 12px 14px; resize: vertical; }
.apx .input:focus, .apx .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.apx .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.apx .form-grid .full { grid-column: 1 / -1; }

/* ---------- Liên hệ ---------- */
.apx .contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.apx .contact-list { display: grid; gap: 12px; margin-top: 24px; }
.apx .contact-item { display: flex; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.apx .contact-item .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.apx .contact-item b { display: block; }
.apx .contact-item span { font-size: 14px; color: var(--muted); }
.apx .panel { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; background: #fff; }

/* ---------- Tài khoản ---------- */
.apx .account { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 48px 0 96px; }
.apx .side { position: sticky; top: 92px; align-self: start; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; }
.apx .side__user { display: flex; gap: 12px; align-items: center; padding: 8px 8px 16px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.apx .side__user .avatar { width: 44px; height: 44px; font-size: 16px; }
.apx .side__user b { display: block; line-height: 1.3; }
.apx .side__user span { font-size: 12px; color: var(--muted); }
.apx .side a, .apx .side button.side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 15px;
  color: var(--ink-2); border: 0; background: none; text-align: left;
}
.apx .side a:hover, .apx .side button.side-link:hover { background: var(--line-2); color: var(--ink); }
.apx .side a.is-on { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.apx .mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.apx .mini { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.apx .mini b { font-size: 28px; letter-spacing: -.02em; display: block; }
.apx .mini span { font-size: 13px; color: var(--muted); }
.apx .lic { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.apx .lic img { width: 48px; height: 48px; border-radius: 12px; }
.apx .lic b { display: block; }
.apx .lic span { font-size: 13px; color: var(--muted); }
.apx .status { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e9f8ee; color: #17803d; }
.apx .status--warn { background: #fff6e5; color: #a15c00; }
.apx .h-panel { font-size: 20px; margin-bottom: 16px; }

/* ---------- Giỏ hàng ---------- */
.apx .cart { display: grid; grid-template-columns: 1fr 360px; gap: 32px; padding: 48px 0 96px; align-items: start; }
.apx .cart-row { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.apx .cart-row img { width: 64px; height: 64px; border-radius: 14px; }
.apx .cart-row .rm { border: 0; background: none; color: var(--muted); font-size: 20px; }
.apx .summary { position: sticky; top: 92px; }
.apx .sum-line { display: flex; justify-content: space-between; padding: 8px 0; color: var(--ink-2); }
.apx .sum-total { display: flex; justify-content: space-between; padding: 16px 0 20px; margin-top: 8px; border-top: 1px solid var(--line); font-size: 20px; font-weight: 700; }
.apx .pay-opts { display: grid; gap: 8px; margin: 8px 0 20px; }
.apx .pay-opt { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.apx .pay-opt input { accent-color: var(--brand); }
.apx .empty { text-align: center; padding: 64px 0; color: var(--muted); }

/* ---------- Sản phẩm + đánh giá ---------- */
.apx .prod { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 48px 0; }
.apx .prod__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.apx .reviews { border-top: 1px solid var(--line); padding: 48px 0 96px; }
.apx .review { padding: 20px 0; border-bottom: 1px solid var(--line-2); }
.apx .review__head { display: flex; gap: 12px; align-items: center; }
.apx .stars { color: var(--brand); letter-spacing: 2px; }
.apx .verified { font-size: 11px; font-weight: 600; color: #17803d; background: #e9f8ee; padding: 2px 8px; border-radius: 999px; }
.apx .review-gate { border: 1px dashed var(--brand); background: var(--brand-soft); border-radius: var(--radius-lg); padding: 28px; text-align: center; }
.apx .review-gate p { color: var(--ink-2); margin-bottom: 16px; }
.apx .review-gate .btn { margin: 0 4px; }
.apx .star-pick { display: inline-flex; gap: 4px; font-size: 26px; color: var(--line); }
.apx .star-pick button { border: 0; background: none; padding: 0; color: inherit; }
.apx .star-pick button.on { color: var(--brand); }

/* ---------- Chân trang ---------- */
.apx .ap-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: #fff; }
.apx .foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.apx .foot-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.apx .foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 15px; }
.apx .foot-grid a:hover { color: var(--brand); }
.apx .foot-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); gap: 16px; flex-wrap: wrap; }

/* ---------- Dải banner khung offline ---------- */
.apx .proto-bar { background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding: 6px 12px; }
.apx .proto-bar a { color: #ffb3a3; text-decoration: underline; margin-left: 8px; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 1080px) {
  .apx .flagships { grid-template-columns: 1fr 1fr; }
  .apx .flagships .flag:first-child { grid-column: 1 / -1; min-height: 0; flex-direction: row; }
  .apx .flagships .flag:first-child .flag__media { aspect-ratio: auto; width: 55%; flex: none; }
  .apx .flagships .flag:first-child .flag__icon { bottom: 20px; left: 20px; }
  .apx .flagships .flag:first-child .flag__body { padding-top: 32px; }
  .apx .stats { grid-template-columns: repeat(3, 1fr); }
  .apx .stat:nth-child(4) { border-left: 0; }
  .apx .stat:nth-child(n+4) { border-top: 1px solid var(--line); }
  .apx .apps { grid-template-columns: repeat(2, 1fr); }
  .apx .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .apx .nav, .apx .head-tools .lang { display: none; }
  .apx .ap-menu { display: inline-grid; }
  body.nav-open .apx .nav {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff;
    padding: 12px var(--gutter) 20px; border-bottom: 1px solid var(--line); margin: 0;
  }
  body.nav-open .apx .head-tools .lang { display: inline-flex; position: absolute; top: 80px; right: var(--gutter); }
  body.nav-open .apx .nav .nav-auth { display: block; color: var(--brand); font-weight: 600; }
  .apx .section { padding: 64px 0; }
  .apx .flagships { grid-template-columns: 1fr; }
  .apx .flagships .flag:first-child { flex-direction: column; }
  .apx .flagships .flag:first-child .flag__media { width: auto; aspect-ratio: 4 / 3.3; }
  .apx .flagships .flag:first-child .flag__icon { bottom: -28px; left: 20px; }
  .apx .flagships .flag:first-child .flag__body { padding-top: 44px; }
  .apx .flag { min-height: 0; }
  .apx .wide-card { grid-template-columns: 1fr; }
  .apx .wide-card__body { padding: 28px; }
  .apx .grid-3 { grid-template-columns: 1fr; }
  .apx .contact, .apx .account, .apx .cart, .apx .prod { grid-template-columns: 1fr; }
  .apx .side, .apx .summary { position: static; }
  .apx .foot-grid { grid-template-columns: 1fr 1fr; }
  .apx .form-grid { grid-template-columns: 1fr; }
  .apx .feats, .apx .steps, .apx .news { grid-template-columns: 1fr; }
  .apx .acc-dl { grid-template-columns: 1fr; }
  .apx .dev { grid-template-columns: 44px 1fr; }
  .apx .dev form { grid-column: 1 / -1; }
  .apx .gallery { grid-template-columns: repeat(2, 1fr); }
  .apx .dl-row { grid-template-columns: 52px 1fr; }
  .apx .dl-row .thumb--lg { width: 52px; height: 52px; }
  .apx .dl-row__act { grid-column: 1 / -1; justify-content: flex-start; }
  .apx .app-head { flex-direction: column; gap: 20px; }
  .apx .thumb.thumb--app { width: 88px; height: 88px; border-radius: 22px; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  .apx .hero { padding: 56px 0 40px; }
  .apx .stats { grid-template-columns: 1fr 1fr; }
  .apx .stat { border-left: 0 !important; border-top: 1px solid var(--line); padding: 20px 16px; }
  .apx .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .apx .stat:nth-child(-n+2) { border-top: 0; }
  .apx .stat:last-child { grid-column: 1 / -1; border-right: 0; }
  .apx .apps, .apx .plans, .apx .mini-stats { grid-template-columns: 1fr; }
  .apx .foot-grid { grid-template-columns: 1fr; }
  .apx .cart-row { grid-template-columns: 52px 1fr auto; }
  .apx .cart-row img { width: 52px; height: 52px; }
  .apx .cart-row .price { grid-column: 2; }
  .apx .head-tools .icon-btn[data-account] .label { display: none; }
}

/* Combo 2 app Architect + Render (bảng giá, 22-10-2026): khối to, nổi bật trên các thẻ app */
.apx .section--combo { padding: 40px 0 48px; }
.apx .section--combo + .section { padding-top: 48px; }
.apx .combo { display: grid; gap: 32px; align-items: center; padding: clamp(28px, 4vw, 52px); border-radius: 28px;
  background: linear-gradient(135deg, #fff1ed 0%, #ffffff 70%); border: 2px solid var(--brand);
  box-shadow: 0 30px 60px -36px rgba(245, 77, 45, .55); }
@media (min-width: 960px) { .apx .combo { grid-template-columns: 1fr 380px; gap: 44px; } }
.apx .combo__thumbs { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.apx .thumb--xl { width: 84px; height: 84px; border-radius: 22px; }
.apx .combo__plus { font-size: 34px; font-weight: 700; color: var(--brand); }
.apx .combo h2 { margin: 8px 0 10px; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.03em; line-height: 1.12; }
.apx .combo__lead { margin: 0 0 18px; font-size: 18px; color: var(--muted); }
.apx .combo__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.apx .combo__list li { position: relative; padding-left: 28px; font-size: 16px; }
.apx .combo__list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--brand); font-weight: 700; }
.apx .combo__buy { background: #fff; border-radius: 22px; padding: 28px; border: 1px solid var(--line, #ececec); text-align: center; }
.apx .combo__old { font-size: 15px; color: var(--muted); display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; }
.apx .combo__price { font-size: clamp(38px, 3.4vw, 46px); font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 4px; color: var(--brand); white-space: nowrap; }
.apx .combo__per { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.apx .btn--lg { padding: 16px 24px; font-size: 17px; }
.apx .combo__note { margin: 14px 0 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.apx .badge--save { background: var(--brand-soft); color: var(--brand); }

/* Nút tiền tệ ₫ / $ cạnh VI / EN (mu-plugin arcpoly-currency, 22-10-2026) */
.apx .lang--cur button { cursor: pointer; font-size: 13px; min-width: 30px; }
@media (max-width: 860px) {
  body.nav-open .apx .head-tools .lang--cur { right: calc(var(--gutter) + 104px); }
}

/* Slogan trang chủ (25-10-2026) */
.apx .slogan { margin: 18px auto 0; display: block; width: fit-content; max-width: 100%; font-size: clamp(17px, 1.9vw, 22px); font-weight: 600; letter-spacing: -.01em;
  line-height: 1.45; color: var(--ink); padding: 10px 18px; border-radius: 14px; background: var(--brand-soft); border: 1px solid #ffd2c5; }
.apx .slogan b { color: var(--brand); font-weight: 700; }
.apx .hero .slogan + h1 { margin-top: 22px; }

/* Dải ưu đãi 30 ngày + đồng hồ đếm ngược - thẻ Arcpoly AI (26-10-2026), giống ai.arcpoly.com */
.apx .promo { display: none; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 24px 0 8px; padding: 22px 26px;
  border-radius: 22px; background: linear-gradient(135deg, #f54d2d 0%, #ff7a4d 100%); color: #fff; box-shadow: 0 24px 48px -28px rgba(245, 77, 45, .8); }
.apx .promo.is-on { display: flex; }
.apx .promo-txt { min-width: 0; }
.apx .promo-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; background: rgba(255, 255, 255, .2);
  border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.apx .promo-txt b { display: block; font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -.02em; line-height: 1.2; }
.apx .promo-txt p { margin: 4px 0 0; font-size: 15px; color: rgba(255, 255, 255, .9); }
.apx .countdown { display: flex; gap: 10px; }
.apx .cd-box { display: grid; place-items: center; min-width: 70px; padding: 10px 8px; border-radius: 14px; background: #fff; color: var(--ink); }
.apx .cd-box b { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.apx .cd-box small { font-size: 12px; color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .apx .countdown { width: 100%; justify-content: space-between; } .apx .cd-box { min-width: 0; flex: 1; } }
