/* =============================================================================
   Tài khoản · Giỏ hàng · Xác nhận · Thanh toán - dựng theo file Figma
   "TSM Web UI Demo" (cùng gốc với trang chủ EVO), đổi teal của TSM sang
   navy/cyan của EVO y như trang chủ đã làm.
   Nạp SAU store.css (font, header/footer, biến màu --cyan-600, --card…).
   Không có style="" (CSP chặn); biến --i/--w… đặt qua CSSOM là được phép.
   ============================================================================= */
body.acct-page {
  --c: var(--cyan-600);          /* màu chủ đạo (TSM: teal) */
  --c-dk: var(--cyan-700);
  --c-bg: #e3f4fa;               /* nền mục đang chọn */
  --c-bg2: #f2f9fc;
  --hr: #dcdfe1;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --pop: cubic-bezier(.34, 1.56, .64, 1);
  --ok: #10b981;
  background: #fff;
}
.acct-page [hidden] { display: none !important; }
.acct-page main { min-height: 62vh; padding-top: 34px; padding-bottom: 80px; }
.acct-page button { font-family: inherit; }
.pg-title { margin: 0 0 26px; font-size: 32px; font-weight: 500; color: var(--ink); line-height: 1.1; }

/* ── Chuyển động ─────────────────────────────────────────────────────────── */
.rv { animation: rv-up .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes rv-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.5); } to { opacity: 1; transform: none; } }
@keyframes shimmer { from { background-position: -500px 0; } to { background-position: 500px 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sk { height: 72px; border-radius: 14px; background: linear-gradient(90deg, #f2f2f2 0, #e8ecef 40%, #f2f2f2 80%) #f2f2f2;
  background-size: 1000px 100%; animation: shimmer 1.3s linear infinite; }
.sk-list { display: grid; gap: 12px; }

/* ── Nút ─────────────────────────────────────────────────────────────────── */
.bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px;
  border: 0; background: var(--c); color: #fff; font: inherit; font-size: 15.5px; font-weight: 500; cursor: pointer; white-space: nowrap;
  text-decoration: none; transition: background .2s, transform .15s var(--ease), box-shadow .2s; }
.bt:hover:not(:disabled) { background: var(--c-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,127,163,.28); }
.bt:active:not(:disabled) { transform: translateY(0); box-shadow: none; }
.bt:disabled { opacity: .5; cursor: default; }
.bt.sm { height: 30px; padding: 0 14px; font-size: 13px; }
.bt.block { width: 100%; }
.bt.line { background: #fff; color: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); }
.bt.line:hover:not(:disabled) { background: var(--c-bg2); color: var(--c-dk); box-shadow: inset 0 0 0 1.5px var(--c-dk); }
.bt svg { width: 18px; height: 18px; }
.more { font-size: 13.5px; color: var(--c); white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; transition: gap .2s; }
.more:hover { gap: 6px; color: var(--c-dk); }
/* Nút sao chép vuông (như TSM) */
.cpy { width: 34px; height: 34px; border-radius: 9px; border: 0; background: #ececec; color: #4a5a62; display: grid; place-items: center;
  cursor: pointer; flex-shrink: 0; transition: background .2s, color .2s, transform .2s var(--pop); }
.cpy svg { width: 16px; height: 16px; }
.cpy:hover { background: var(--c-bg); color: var(--c); }
.cpy.done { background: var(--ok); color: #fff; transform: scale(1.08); }
/* Viên trạng thái viền mảnh */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 12px; border-radius: 999px; font-size: 12.5px;
  color: var(--c); box-shadow: inset 0 0 0 1px var(--c); white-space: nowrap; }
.pill.warn { color: #d08a00; box-shadow: inset 0 0 0 1px #f0b93a; }
.pill.bad { color: #e0243a; box-shadow: inset 0 0 0 1px #f08a96; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); opacity: 0; max-width: calc(100vw - 32px);
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 500; font-size: 14px;
  box-shadow: 0 10px 30px rgba(2,20,36,.3); transition: opacity .2s, transform .3s var(--pop); z-index: 90; pointer-events: none; }
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.err { background: #e0243a; }
.note { display: flex; gap: 10px; align-items: center; border-radius: 14px; padding: 12px 16px; font-size: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.note svg { width: 18px; height: 18px; flex-shrink: 0; }
.note.ok { background: #e6f8f0; color: #067a54; }
.note.bad { background: #fdecee; color: #c41e30; }
.note.info { background: var(--c-bg); color: var(--c-dk); }
.note .bt { margin-left: auto; }

/* ═══ Khung tài khoản ═══════════════════════════════════════════════════ */
#pane, .acct > *, .cart > *, .pay > * { min-width: 0; }
.acct { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 36px; align-items: start; }
.side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 4px; }
.side a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 16px; border-radius: 999px; color: var(--c);
  font-size: 16px; font-weight: 400; text-decoration: none; }
.side a svg { width: 20px; height: 20px; flex-shrink: 0; }
.side a:hover { background: var(--c-bg2); color: var(--c-dk); }
.side a.on { background: var(--c-bg); color: var(--c-dk); font-weight: 500; }
.side a.out { color: #e0243a; margin-top: 8px; }
.side a.out:hover { background: #fdecee; color: #c41e30; }
.side hr { border: 0; border-top: 1px solid var(--hr); margin: 8px 12px; }

/* Đầu hồ sơ */
.phead { display: flex; align-items: center; gap: 22px; padding-bottom: 24px; border-bottom: 1px solid var(--hr); }
.ava { width: 124px; height: 124px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; position: relative;
  background: linear-gradient(140deg, #9be7fb, #00c2f7 55%, #0b7fa3); color: #fff; font-size: 46px; font-weight: 600; animation: pop-in .5s var(--pop) both; }
.ava img { width: 100%; height: 100%; object-fit: cover; }
.ava .mk { width: 64%; height: auto; filter: brightness(0) invert(1); opacity: .95; }
.phead .nm { font-size: 18px; font-weight: 500; color: var(--c); margin: 0; }
.phead .em { margin: 2px 0 0; font-size: 16px; color: #8c8c8c; word-break: break-all; }
.phead .lk { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.lkc { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px; border-radius: 999px; font-size: 12.5px; color: #4a5a62;
  background: #f2f2f2; text-decoration: none; }
.lkc svg { width: 14px; height: 14px; }
/* Nút "Liên kết Discord" (chưa liên kết): cùng dáng chip, màu Discord */
button.lkc-add { border: 0; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 600; background: #eef0ff; color: #5865f2;
  box-shadow: inset 0 0 0 1px #c9cdfb; }
button.lkc-add:hover { background: #5865f2; color: #fff; }
button.lkc-add:disabled { opacity: .6; cursor: wait; }
a.lkc { background: #fff; box-shadow: inset 0 0 0 1px var(--hr); color: var(--c); }
a.lkc:hover { box-shadow: inset 0 0 0 1px var(--c); }
.phead + .bh { margin-top: 24px; }
.phead .r:empty { display: none; }
.phead .r { margin-left: auto; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* Hàng tóm tắt: tổng chi tiêu | hạng thành viên */
.sumrow { display: grid; grid-template-columns: 1fr 1fr; padding: 22px 0; border-bottom: 1px solid var(--hr); }
.sumrow > div { padding: 2px 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.sumrow > div:first-child { padding-left: 14px; border-right: 1px solid var(--hr); }
.sumrow .lb { font-size: 16px; color: #8c8c8c; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sumrow .big { font-size: 38px; font-weight: 600; color: var(--c); line-height: 1.1; font-variant-numeric: tabular-nums; }
.sumrow .rk { display: flex; align-items: center; gap: 12px; }
.sumrow .rk .medal { width: 44px; height: 44px; flex-shrink: 0; }
.sumrow .rk b { font-size: 20px; font-weight: 600; color: var(--ink); }
.sumrow .rk small { display: block; font-size: 12.5px; color: #8c8c8c; }

/* Thanh tiến độ */
.bar { height: 8px; border-radius: 8px; background: #fff; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 8px; background: linear-gradient(90deg, #00c2f7, var(--c));
  transition: width 1.2s .25s var(--ease); }
.sumrow .bar { background: #ececec; height: 6px; margin-top: 6px; }

/* Mục (Kho game, Lịch sử…) */
.blk { padding: 18px 0 8px; }
.blk + .blk { border-top: 1px solid var(--hr); }
.bh { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; }
.bh h2 { margin: 0; font-size: 18px; font-weight: 500; color: var(--c); display: flex; align-items: center; gap: 10px; }
.bh h2 svg { width: 22px; height: 22px; }
.bh .more, .bh .srch { margin-left: auto; }

/* Một dòng sản phẩm (kho game / lịch sử) - như TSM */
.it { padding: 6px 14px 16px; }
.it + .it { border-top: 1px solid #f0f0f0; padding-top: 14px; }
.it .top { display: flex; align-items: center; gap: 12px; }
.it .th { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e8ecef; }
.it .tx { flex: 1; min-width: 0; }
.it .tx b { display: block; font-size: 16.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it .tx a { color: inherit; }
.it .tx a:hover { color: var(--c); }
.it .tx span { display: block; font-size: 12.5px; color: #8c8c8c; margin-top: 1px; }
.it .tx span i { font-style: normal; margin: 0 6px; color: #c9c9c9; }
.it .amt { font-size: 15px; font-weight: 600; color: var(--ink); white-space: nowrap; }
/* Ô key: nền xám bo tròn + nút chép vuông (đúng kiểu ô email của TSM) */
.kf { display: flex; align-items: center; gap: 8px; margin: 10px 0 0 60px; }
.kf .v { flex: 1; min-width: 0; height: 34px; border-radius: 999px; background: #efefef; display: flex; align-items: center; padding: 0 16px;
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; color: #3c4a52; letter-spacing: .04em;
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis; position: relative; }
.kf .v.blur { color: transparent; text-shadow: 0 0 8px rgba(60,74,82,.75); user-select: none; }
.kf .eye { height: 34px; padding: 0 12px; border-radius: 999px; border: 0; background: #ececec; color: #4a5a62; font-size: 12.5px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; transition: background .2s, color .2s; }
.kf .eye:hover { background: var(--c-bg); color: var(--c); }
.kf .eye svg { width: 15px; height: 15px; }
.kf.wait .v { color: #b07400; background: #fff6e0; font-family: inherit; letter-spacing: 0; }
.tl { display: flex; align-items: center; gap: 10px; margin: 10px 0 0 60px; }
.tl .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
.tl b { font-size: 13px; font-weight: 500; color: var(--ink); display: block; }
.tl span { font-size: 12px; color: #8c8c8c; }
.it.click { cursor: pointer; border-radius: 14px; transition: background .2s; }
.it.click:hover { background: var(--c-bg2); }

/* Ô tìm kiếm nhỏ */
.srch { position: relative; width: min(100%, 260px); }
.srch svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--c); }
.srch input { width: 100%; height: 36px; border: 0; border-radius: 999px; background: #f2f2f2; padding: 0 38px 0 16px; font: inherit; font-size: 14px;
  color: var(--ink); transition: box-shadow .2s, background .2s; }
.srch input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }

/* Trống */
.empty { text-align: center; padding: 50px 16px 56px; }
.empty .art { width: 120px; height: 100px; margin: 0 auto 14px; color: var(--c); animation: pop-in .5s var(--pop) both; }
.empty .art svg { width: 100%; height: 100%; }
.empty b { display: block; font-size: 22px; font-weight: 500; color: var(--ink); }
.empty span { font-size: 15px; color: var(--ink); }
.empty span a { color: var(--c); }
.empty .bt { margin-top: 18px; }

/* ═══ Hạng thành viên ═══════════════════════════════════════════════════ */
.rkcard { display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: 18px; margin: 0 0 30px;
  background: linear-gradient(100deg, #d4eef8 0%, #e9f6fb 60%, #f6fbfd 100%); position: relative; overflow: hidden; }
.rkcard::after { content: ""; position: absolute; top: 0; bottom: 0; width: 120px; left: -160px;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.7), transparent); animation: shine 3.8s 1s ease-in-out infinite; }
@keyframes shine { 0% { left: -160px; } 45%, 100% { left: 110%; } }
.rkcard .ic { width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #fff; box-shadow: 0 6px 16px rgba(11,127,163,.15); }
.rkcard .ic svg { width: 46px; height: 46px; animation: pop-in .6s .1s var(--pop) both; }
.rkcard .bd { flex: 1; min-width: 0; }
.rkcard .r1 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.rkcard h3 { margin: 0; font-size: 24px; font-weight: 600; color: var(--ink); }
.rkcard .r1 small { font-size: 12.5px; color: var(--ink); }
.rkcard .r1 small b { color: var(--c); }
.rkcard .bar { margin: 8px 0 6px; }
.rkcard p { margin: 0; font-size: 13px; color: var(--ink); }
.rkcard p b { font-weight: 600; }
.tiers-t { font-size: 18px; font-weight: 500; color: var(--ink); margin: 0 0 14px 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tier { border-radius: 16px; padding: 16px 16px 18px; box-shadow: inset 0 0 0 1px #d6eef6; background: #fff; transition: transform .25s var(--ease), box-shadow .25s; }
.tier:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px #9fd9ec, 0 10px 24px rgba(11,127,163,.1); }
.tier.cur { box-shadow: inset 0 0 0 2px var(--cyan); background: linear-gradient(180deg, #f2fbfe, #fff 50%); }
.tier .h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.tier .h svg { width: 40px; height: 40px; flex-shrink: 0; transition: transform .4s var(--pop); }
.tier:hover .h svg { transform: rotate(-8deg) scale(1.08); }
.tier .h b { display: block; font-size: 20px; font-weight: 600; color: var(--ink); }
.tier .h span { font-size: 12px; color: #8c8c8c; }
.tier .tag { margin-left: auto; align-self: flex-start; font-size: 11px; font-weight: 600; color: #fff; background: var(--c); border-radius: 999px; padding: 3px 9px; }
.tier ul { margin: 0; padding: 0 0 0 16px; font-size: 13px; line-height: 1.5; color: var(--ink); display: grid; gap: 8px; }
.tier.lock ul { color: #a8b1b6; }

/* ═══ Mã khuyến mãi ═════════════════════════════════════════════════════ */
.cps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cpc { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px; border-radius: 16px; box-shadow: inset 0 0 0 1px #d6eef6;
  background: #fff; position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s; }
.cpc:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #9fd9ec, 0 10px 22px rgba(11,127,163,.1); }
.cpc .ic { width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0; display: grid; place-items: center; color: var(--c); background: var(--c-bg);
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.cpc .tx { flex: 1; min-width: 0; }
.cpc .tx b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.cpc .tx span { display: block; font-size: 12.5px; color: #8c8c8c; margin-top: 2px; }
.cpc .cd { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.cpc .cd code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; color: var(--c-dk);
  background: var(--c-bg2); border: 1px dashed #9fd9ec; border-radius: 8px; padding: 6px 9px; }
.cpc.used { opacity: .5; }

/* ═══ Bước (giỏ → xác nhận → thanh toán → hoàn tất) ═════════════════════ */
.steps { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); margin: 4px 0 40px; }
.steps .s { position: relative; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 14px; color: #8c8c8c; text-align: center; }
.steps .s:first-child { align-items: flex-start; text-align: left; }
.steps .s:last-child { align-items: flex-end; text-align: right; }
.steps .s::before { content: ""; position: absolute; top: 10px; height: 2px; left: 0; right: 0; background: #d0d4d6; z-index: 0; }
.steps .s:first-child::before { left: 22px; }
.steps .s:last-child::before { right: 22px; }
.steps .s::after { content: ""; position: absolute; top: 10px; height: 2px; left: 0; right: 0; background: var(--c); z-index: 0;
  transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 180ms); }
.steps .s:first-child::after { left: 22px; }
.steps .s:last-child::after { right: 22px; }
.steps .s.done::after, .steps .s.on::after { transform: scaleX(1); }
.steps .s.on::after { right: 50%; }
.steps .s:first-child.on::after { display: none; }
.steps .dot { position: relative; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff;
  box-shadow: inset 0 0 0 2px #c4c9cc; transition: all .35s var(--pop); transition-delay: calc(var(--i, 0) * 180ms); }
.steps .dot svg { width: 12px; height: 12px; color: #fff; }
.steps .s.done .dot { background: var(--c); box-shadow: none; }
.steps .s.on .dot { box-shadow: inset 0 0 0 2px var(--c); }
.steps .s.on .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); animation: pop-in .4s .3s var(--pop) both; }
.steps .s.done, .steps .s.on { color: var(--c); }

/* ═══ Giỏ hàng / Xác nhận ═══════════════════════════════════════════════ */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 0; align-items: start; }
.rows { padding-right: 32px; display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 14px; transition: opacity .3s, transform .35s var(--ease), max-height .35s var(--ease), margin .35s;
  max-height: 200px; }
.row .th { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #e8ecef; transition: transform .3s var(--ease); }
.row:hover .th { transform: scale(1.05); }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-size: 17px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .tx a { color: inherit; }
.row .tx a:hover { color: var(--c); }
.row .tx span { display: block; font-size: 12.5px; color: #8c8c8c; margin-top: 1px; }
.row .tx span.bad { color: #e0243a; }
.row .tx span .ok { color: var(--ok); display: inline-flex; align-items: center; gap: 3px; }
.row .tx span .ok svg { width: 7px; height: 10px; }
.row .old { font-size: 13px; color: #a1a1a1; text-decoration: line-through; white-space: nowrap; width: 90px; text-align: right; }
.row .pr { font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; min-width: 104px; text-align: right; font-variant-numeric: tabular-nums; }
.row .x { width: 30px; height: 30px; border: 0; background: none; color: #8a8a8a; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  flex-shrink: 0; transition: background .2s, color .2s, transform .2s var(--pop); }
.row .x:hover { background: #fdecee; color: #e0243a; transform: rotate(90deg); }
.row .x svg { width: 16px; height: 16px; }
.row.out { opacity: 0; transform: translateX(-30px); max-height: 0; margin-bottom: -14px; }
.row.bad .th { outline: 2px solid #f08a96; outline-offset: 2px; }
/* Cột tổng tiền */
.sumc { border-left: 1px solid var(--hr); padding-left: 24px; position: sticky; top: 110px; }
.sumc .r { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; font-size: 13.5px; color: #8c8c8c; padding: 3px 0; }
.sumc .r b { font-weight: 400; color: #8c8c8c; text-align: right; font-variant-numeric: tabular-nums; }
.sumc .r .dc { display: block; font-size: 11px; line-height: 1.3; }
.sumc .r .dc em { display: block; font-style: normal; font-size: 13px; color: var(--ok); font-weight: 500; }
.sumc hr { border: 0; border-top: 1px solid var(--hr); margin: 14px 0; }
.sumc .tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sumc .tot span { font-size: 13.5px; color: #8c8c8c; }
.sumc .tot b { font-size: 24px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.sumc .save { margin-top: 8px; font-size: 12.5px; color: var(--ok); text-align: right; animation: pop-in .4s var(--pop); }
.cin { display: flex; align-items: center; margin-top: 16px; height: 38px; border-radius: 999px; box-shadow: inset 0 0 0 1px #c4c9cc; padding: 0 4px 0 16px;
  transition: box-shadow .2s; }
.cin:focus-within { box-shadow: inset 0 0 0 1.5px var(--c); }
.cin input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--ink); text-transform: uppercase; }
.cin input::placeholder { text-transform: none; color: #9a9a9a; }
.cin input:focus { outline: 0; }
.cin button { height: 30px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--c-bg); color: var(--c-dk); font-size: 13px; font-weight: 500; cursor: pointer; }
.cin button:hover { background: var(--c); color: #fff; }
.cin.shake { animation: shake .4s; box-shadow: inset 0 0 0 1.5px #e0243a; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.cmsg { margin: 6px 4px 0; font-size: 12.5px; }
.cmsg.bad { color: #e0243a; }
.cmsg.good { color: var(--ok); }
.cchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cchip { height: 28px; padding: 0 11px; border-radius: 999px; border: 0; background: var(--c-bg2); color: var(--c-dk); font-size: 12.5px; cursor: pointer;
  box-shadow: inset 0 0 0 1px #c6e7f3; display: inline-flex; align-items: center; gap: 5px; transition: all .2s var(--pop); }
.cchip svg { width: 13px; height: 13px; }
.cchip:hover { box-shadow: inset 0 0 0 1px var(--c); }
.cchip.on { background: var(--c); color: #fff; box-shadow: none; transform: scale(1.04); }
.cchip:disabled { opacity: .45; cursor: not-allowed; }
.sumc .bt { margin-top: 14px; }
.sumc .fine { margin: 10px 0 0; font-size: 11.5px; color: #8c8c8c; text-align: center; line-height: 1.45; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--c); font-size: 14px; margin-bottom: 18px; }
.back svg { width: 16px; height: 16px; transition: transform .2s; }
.back:hover svg { transform: translateX(-3px); }

/* Có thể bạn cũng thích */
.like-t { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 500; color: var(--ink); margin: 56px 0 14px; }
.like-t svg { width: 18px; height: 18px; color: #ff4d6d; }

/* ═══ Thanh toán QR ═════════════════════════════════════════════════════ */
.pay { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 0; align-items: start; }
.pay .lft { padding-right: 32px; }
.qrw { display: flex; gap: 26px; align-items: center; padding: 22px; border-radius: 20px; box-shadow: inset 0 0 0 1px #d6eef6;
  background: linear-gradient(180deg, #f4fbfe, #fff 60%); }
.qrbox { position: relative; width: 236px; flex-shrink: 0; padding: 12px; border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(11,127,163,.14); overflow: hidden; }
.qrbox img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; }
.qrbox .scan { position: absolute; left: 12px; right: 12px; top: 12px; height: 2px; background: var(--cyan); box-shadow: 0 0 12px 2px rgba(0,194,247,.55);
  animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { top: 12px; } 50% { top: calc(100% - 14px); } }
.qrw h2 { margin: 0 0 6px; font-size: 22px; font-weight: 500; color: var(--ink); }
.qrw p { margin: 0 0 14px; font-size: 14px; color: #6b6b6b; line-height: 1.5; }
.qrw ol { margin: 0 0 16px; padding-left: 18px; font-size: 13.5px; color: var(--ink); display: grid; gap: 6px; }
.timer { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--c-bg); color: var(--c-dk);
  font-weight: 500; font-variant-numeric: tabular-nums; }
.timer svg { width: 16px; height: 16px; }
.timer.low { background: #fdecee; color: #c41e30; }
.live { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: #6b6b6b; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex-shrink: 0; animation: ping 1.6s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.5); } 100% { box-shadow: 0 0 0 9px rgba(16,185,129,0); } }
.qrdemo { margin-top: 10px; font-size: 12px; color: #b07400; background: #fff6e0; border-radius: 10px; padding: 7px 10px; }
.sumc .r.bk b { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.sumc .r.bk .cpy { width: 26px; height: 26px; border-radius: 7px; }
.sumc .r.bk .cpy svg { width: 13px; height: 13px; }
.sumc .r.bk.code b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--c-dk); font-weight: 700; }
.sumc .warn { margin-top: 12px; font-size: 12px; line-height: 1.5; color: #9a6400; background: #fff6e0; border-radius: 12px; padding: 9px 12px; }
.demo-pay { margin-top: 16px; border: 1.5px dashed #f0c674; border-radius: 14px; padding: 12px; background: #fffbf0; }
.demo-pay p { margin: 0 0 8px; font-size: 12px; color: #8a5300; }
.demo-pay .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pay .rows { padding-right: 0; margin-top: 26px; }

/* Thành công / thất bại */
.res { text-align: center; padding: 6px 0 10px; }
.res .ok { width: 128px; height: 128px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(140deg, #9be7fb, #00c2f7 50%, #0b7fa3); box-shadow: 0 16px 40px rgba(0,194,247,.35); animation: pop-in .55s var(--pop) both; }
.res .ok svg { width: 60px; height: 60px; color: #fff; }
.res .ok svg path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .4s var(--ease) forwards; }
.res .ok.bad { background: linear-gradient(140deg, #ffb3bb, #ff4d5a 55%, #c41e30); box-shadow: 0 16px 40px rgba(255,77,90,.3); }
.res .ok.warn { background: linear-gradient(140deg, #ffe08a, #ffb020 55%, #c27803); box-shadow: 0 16px 40px rgba(255,176,32,.3); }
.res h1 { margin: 0 0 6px; font-size: 28px; font-weight: 600; color: var(--c); }
.res.bad h1 { color: #e0243a; }
.res p { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.res p.mt { color: #8c8c8c; }
.res p a { color: var(--c); text-decoration: underline; }
.res .keys { max-width: 760px; margin: 30px auto 0; text-align: left; border-radius: 20px; box-shadow: inset 0 0 0 1px #d6eef6; padding: 10px 6px; }
.res .acts { display: flex; gap: 10px; justify-content: center; margin-top: 26px; flex-wrap: wrap; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; overflow: hidden; }
.confetti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: cf var(--d, 1.6s) cubic-bezier(.2,.6,.4,1) forwards; animation-delay: var(--dl, 0s); }
@keyframes cf { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* Hộp thoại */
.ov { position: fixed; inset: 0; background: rgba(2,20,36,.5); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; animation: fade .2s both; }
@keyframes fade { from { opacity: 0; } }
.dlg { position: relative; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 22px; padding: 26px; animation: pop-in .3s var(--pop); }
.dlg h3 { margin: 0 40px 4px 0; font-size: 22px; font-weight: 500; color: var(--ink); }
.dlg p { margin: 0 0 18px; color: #6b6b6b; font-size: 14px; }
.dlg .xx { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f2f2f2; color: #4a5a62; cursor: pointer; display: grid; place-items: center; }
.dlg .xx svg { width: 16px; height: 16px; }
.dlg .acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; }
/* Hộp hỏi xác nhận (E.hoi): thay confirm() của trình duyệt */
.dlg-hoi { max-width: 440px; }
.dlg-hoi h3 { font-size: 19px; line-height: 1.35; margin-bottom: 10px; }
.dlg-hoi p { margin: 0 0 10px; line-height: 1.6; color: #4a5a62; }
.dlg-hoi .acts { margin-top: 18px; flex-wrap: wrap; }
.bt.danger { background: #d64545; }
.bt.danger:hover:not(:disabled) { background: #b83434; box-shadow: 0 6px 16px rgba(214, 69, 69, .28); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13.5px; color: var(--c); }
.field .hint { font-size: 12px; color: #8c8c8c; }
.field input { height: 44px; border: 0; border-radius: 999px; background: #f2f2f2; padding: 0 18px; font: inherit; font-size: 15px; color: var(--ink); transition: box-shadow .2s, background .2s; }
.field input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
.field input[readonly] { color: #8c8c8c; }

/* Màn đăng nhập giả lập (demo) */
.demo-login { max-width: 440px; margin: 10px auto 0; padding: 30px 28px; text-align: center; border-radius: 22px; box-shadow: inset 0 0 0 1px #d6eef6; }
.demo-login h1 { margin: 12px 0 6px; font-size: 22px; font-weight: 500; color: var(--ink); }
.demo-login p { font-size: 13.5px; margin: 0 0 20px; line-height: 1.5; color: #6b6b6b; }
.demo-login form { text-align: left; }
.demo-brand { display: grid; place-items: center; }

/* ── Đáp ứng ─────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
  .acct { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .side { position: static; flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; margin: 0 -4px; }
  .side::-webkit-scrollbar { display: none; }
  .side a { flex-shrink: 0; height: 40px; font-size: 15px; padding: 0 14px; }
  .side a:hover { padding-left: 14px; }
  .side hr { display: none; }
  .side a.out { margin-top: 0; }
  .cart, .pay { grid-template-columns: minmax(0, 1fr); }
  .rows, .pay .lft { padding-right: 0; }
  .sumc { border-left: 0; padding-left: 0; border-top: 1px solid var(--hr); padding-top: 18px; margin-top: 22px; position: static; }
  .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .acct-page main { padding-top: 20px; }
  .pg-title { font-size: 24px; margin-bottom: 16px; }
  .phead { flex-wrap: wrap; gap: 14px; }
  .ava { width: 80px; height: 80px; font-size: 30px; }
  .phead .r { margin-left: 0; align-items: flex-start; width: 100%; }
  .sumrow { grid-template-columns: 1fr; }
  .sumrow > div { padding: 10px 6px; }
  .sumrow > div:first-child { border-right: 0; border-bottom: 1px solid var(--hr); padding-bottom: 16px; }
  .sumrow .big { font-size: 30px; }
  .bh { flex-wrap: wrap; margin: 0 4px 12px; }
  .bh .srch { width: 100%; }
  .it { padding-left: 4px; padding-right: 4px; }
  .kf, .tl { margin-left: 0; }
  .tiers, .cps { grid-template-columns: 1fr; }
  .rkcard { padding: 16px; gap: 12px; }
  .rkcard .ic { width: 52px; height: 52px; }
  .rkcard .ic svg { width: 36px; height: 36px; }
  .row { flex-wrap: wrap; gap: 10px; }
  .row .th { width: 54px; height: 54px; }
  .row .tx { flex-basis: calc(100% - 64px - 40px); }
  .row .old { width: auto; margin-left: 64px; }
  .row .pr { min-width: 0; margin-left: auto; font-size: 16px; }
  .steps { font-size: 12px; margin-bottom: 28px; }
  .steps .s { font-size: 12px; }
  .qrw { flex-direction: column; text-align: center; }
  .qrw ol { text-align: left; }
  .res .ok { width: 100px; height: 100px; }
  .res h1 { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  .acct-page *, .acct-page *::before, .acct-page *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .confetti { display: none; }
}

/* ═══ Huy hiệu hạng (khiên EVO): hạng càng cao hiệu ứng càng nhiều ═══════ */
svg.medal { overflow: visible; }
svg.medal .rk-sweep { animation: rk-sweep 3.2s ease-in-out infinite; }
@keyframes rk-sweep { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(92px) skewX(-20deg); } }
svg.medal.rk-gold .rk-sweep { animation-duration: 2.8s; }
svg.medal.rk-diamond .rk-sweep, svg.medal.rk-platinum .rk-sweep { animation-duration: 2.3s; }
svg.medal .rk-spark { transform-box: fill-box; transform-origin: center; animation: rk-twinkle 1.8s ease-in-out infinite; }
svg.medal .rk-spark.s1 { animation-delay: .6s; }
svg.medal .rk-spark.s2 { animation-delay: 1.1s; }
@keyframes rk-twinkle { 0%, 100% { transform: scale(0) rotate(0); opacity: 0; } 50% { transform: scale(1) rotate(90deg); opacity: 1; } }

@keyframes rk-glow-c { 0%, 100% { filter: drop-shadow(0 0 2px rgba(0, 194, 247, .45)); } 50% { filter: drop-shadow(0 0 9px rgba(0, 194, 247, .9)); } }

@keyframes rk-glow-p {
  0%, 100% { filter: drop-shadow(0 0 3px rgba(168, 92, 255, .55)) hue-rotate(0deg); }
  50% { filter: drop-shadow(0 0 11px rgba(126, 232, 255, .9)) hue-rotate(-28deg); }
}
svg.medal .rk-rays { transform-origin: 32px 34px; animation: spin-slow 12s linear infinite; }
svg.medal .rk-orbit { transform-origin: 32px 34px; animation: spin-slow 6s linear infinite reverse; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
svg.medal .rk-gemtop { transform-box: fill-box; transform-origin: center; animation: rk-gem 2s ease-in-out infinite; }
@keyframes rk-gem { 50% { transform: scale(1.3); } }

/* Thẻ hạng: mỗi hạng một màu ở cạnh trên, hạng cao màu chuyển động */
.tier { position: relative; overflow: hidden; }
.tier::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--rk, #d6eef6); }
.tier.t-bronze { --rk: linear-gradient(90deg, #f3c9a0, #c8783a); }
.tier.t-silver { --rk: linear-gradient(90deg, #e9eef1, #9aa8b1); }
.tier.t-gold { --rk: linear-gradient(90deg, #ffe58a, #f4b41a, #ffe58a); }
.tier.t-diamond { --rk: linear-gradient(90deg, #7ee8ff, #00c2f7, #0b7fa3, #7ee8ff); }
.tier.t-platinum { --rk: linear-gradient(90deg, #ffd6ff, #a85cff, #1fb6ff, #ffd6ff); }
.tier.t-gold::before, .tier.t-diamond::before, .tier.t-platinum::before { background-size: 200% 100%; animation: rk-band 3s linear infinite; }
@keyframes rk-band { to { background-position: 200% 0; } }
.tier.t-diamond .h b { color: #0b7fa3; }
.tier.t-platinum .h b { background: linear-gradient(90deg, #a85cff, #1fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tier .h .medal { width: 46px; height: 46px; }
.rkcard .ic .medal { width: 52px; height: 52px; }
.sumrow .rk .medal { width: 48px; height: 48px; }

/* ═══ Kiểu giao + khối nhận hàng ═════════════════════════════════════════ */
.dl { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; white-space: nowrap; }
.dl svg { width: 11px; height: 11px; flex-shrink: 0; }
.dl.in { color: #067a54; }
.dl.mn { color: var(--c-dk); }
.it .tx span .dl { display: inline-flex; margin: 0; }
.gh { margin: 10px 0 0 60px; }
.gh .kf { margin: 0; }
.gh .hd { margin-top: 8px; border-radius: 12px; background: #f6f9fa; }
.gh .hd summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; color: var(--c); }
.gh .hd summary::-webkit-details-marker { display: none; }
.gh .hd summary svg { width: 14px; height: 14px; }
.gh .hd p { margin: 0; padding: 0 14px 12px; font-size: 13px; line-height: 1.55; color: var(--ink); white-space: pre-line; }
/* "Hướng dẫn sử dụng" dạng link mở bài viết (khi ô Hướng dẫn của sản phẩm là link bài) */
.gh .hd-link { display: flex; align-items: center; gap: 6px; padding: 8px 14px; font-size: 13px; color: var(--c); text-decoration: none; }
.gh .hd-link svg { width: 14px; height: 14px; }
.gh .hd-link svg:last-child { margin-left: auto; }
.gh .hd-link:hover { text-decoration: underline; }
.gh.mn { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--c-bg2); box-shadow: inset 0 0 0 1px #d6eef6; }
.gh.mn .gh-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--c); flex-shrink: 0; }
.gh.mn .gh-ic svg { width: 15px; height: 15px; }
.gh.mn .gh-tx { flex: 1; min-width: 0; font-size: 13.5px; color: var(--ink); }
.gh.mn .gh-tx b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--c-dk); letter-spacing: .04em; }
.gh.mn .cpy { width: 30px; height: 30px; background: #fff; }
.res .keys .gh { margin-left: 60px; }
.bh h2 .code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .04em; color: var(--c-dk); }
.bh h2 .cpy { width: 28px; height: 28px; }

/* ═══ Số dư + thẻ hạng theo màu hạng ═════════════════════════════════════ */
.wal { display: inline-flex; align-items: center; gap: 8px; }
.wal-v { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #d6eef6; }
.wal-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffe7a3, #f4b41a); color: #5a3a00; }
.wal-ic svg { width: 15px; height: 15px; }
.wal-lb { font-size: 12.5px; color: #8c8c8c; }
.wal-v b { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.wal .bt.sm { height: 38px; padding: 0 16px; }
.wal .bt svg { width: 14px; height: 14px; }
.wal.sm .wal-v, .wal.sm .bt.sm { height: 34px; }
.rkcard .r1 { align-items: center; }

/* Màu theo hạng: --rk1 nền nhạt · --rk2 nền giữa · --rk3 đậm (chữ) · --rkb thanh tiến độ */
.rkc-member   { --rk1: #e9f6fb; --rk2: #d4eef8; --rk3: #0b7fa3; --rkb: linear-gradient(90deg, #7ee8ff, #0b7fa3); }
.rkc-bronze   { --rk1: #fbefe5; --rk2: #f3d3b6; --rk3: #8a4a1c; --rkb: linear-gradient(90deg, #f3c9a0, #c8783a); }
.rkc-silver   { --rk1: #f3f5f7; --rk2: #dde3e8; --rk3: #4f5d66; --rkb: linear-gradient(90deg, #cfd8de, #7d8b94); }
.rkc-gold     { --rk1: #fff8e1; --rk2: #ffe8a3; --rk3: #8a5600; --rkb: linear-gradient(90deg, #ffe58a, #f4b41a, #d89100); }
.rkc-diamond  { --rk1: #e3f9ff; --rk2: #b8eefe; --rk3: #04607e; --rkb: linear-gradient(90deg, #7ee8ff, #00c2f7, #0b7fa3); }
.rkc-platinum { --rk1: #f6ecff; --rk2: #e2cdff; --rk3: #5a2aa8; --rkb: linear-gradient(90deg, #ffd6ff, #a85cff, #1fb6ff); }
.rkcard[class*="rkc-"] { background: linear-gradient(100deg, var(--rk2) 0%, var(--rk1) 60%, #fff 100%); box-shadow: inset 0 0 0 1px var(--rk2); }
.rkcard[class*="rkc-"] h3 { color: var(--rk3); }
.rkcard[class*="rkc-"] .bar i, .sumrow[class*="rkc-"] .bar i { background: var(--rkb); }
.rkcard.rkc-platinum h3 { background: linear-gradient(90deg, #a85cff, #1fb6ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rkcard.rkc-gold .bar i, .rkcard.rkc-diamond .bar i, .rkcard.rkc-platinum .bar i { background-size: 200% 100%; animation: rk-band 3s linear infinite; }
.sumrow[class*="rkc-"] .rkcol { border-radius: 14px; background: linear-gradient(100deg, var(--rk1), #fff 90%); margin-left: 12px; padding: 12px 18px; }
.sumrow[class*="rkc-"] .rk b { color: var(--rk3); }
.sumrow .balrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sumrow .balrow .bt svg { width: 14px; height: 14px; }

/* ═══ Lịch sử mua hàng: bảng kẻ dòng ═════════════════════════════════════ */
.otbl { margin: 0 4px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hr); overflow: hidden; }
.oln { display: grid; grid-template-columns: minmax(0, 2.4fr) 1.15fr .95fr .95fr .95fr; align-items: center; gap: 12px; padding: 12px 16px; color: var(--ink);
  font-size: 14px; font-variant-numeric: tabular-nums; transition: background .15s; }
.oln + .oln { border-top: 1px solid #eceff1; }
a.oln:hover { background: var(--c-bg2); }
.oln.head { padding-top: 10px; padding-bottom: 10px; background: #f6f9fa; font-size: 12.5px; color: #8c8c8c; }
.oln .n { text-align: right; white-space: nowrap; }
.oln .c-don { display: flex; align-items: center; gap: 12px; min-width: 0; }
.oln .th { width: 42px; height: 42px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e8ecef; }
.oln .tx { min-width: 0; display: flex; flex-direction: column; }
.oln .tx b { font-weight: 500; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oln .tx small { font-size: 12px; color: #8c8c8c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.oln .tx small.gd { display: flex; align-items: center; gap: 4px; margin-top: 2px; color: #9aa4a8; }
.oln .tx small.gd code { color: var(--c-dk); letter-spacing: .03em; }
.oln .tx small.gd .cpy { width: 22px; height: 22px; }
.oln .tx small.gd .cpy svg { width: 13px; height: 13px; }
.oln .tx code { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--c-dk); letter-spacing: .03em; }
.oln .tx em.bad { font-style: normal; color: #e0243a; }
.oln .c-ngay { font-size: 13px; color: #6b6b6b; }
.oln .c-goc { color: #8c8c8c; }
.oln .c-giam { color: #b9b9b9; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.oln .c-giam.on { color: var(--ok); font-weight: 500; }
.oln .c-giam small { font-size: 11px; font-weight: 400; color: #8c8c8c; }
.oln .c-tra { font-weight: 600; }
.oln.warn .c-tra { color: #e0243a; }
.otbl.led .oln { grid-template-columns: minmax(0, 2fr) 1.2fr 1fr 1fr; }
.oln .lic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.oln .lic svg { width: 15px; height: 15px; }
.oln .lic.in { background: #e6f8f0; color: #067a54; }
.oln .lic.out { background: var(--c-bg); color: var(--c-dk); }
.oln .pos { color: #067a54; font-weight: 600; }
.oln .neg { color: var(--ink); font-weight: 600; }
.osum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 4px 14px; }
.osum > div { border-radius: 14px; background: #f6f9fa; padding: 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.osum span { font-size: 12px; color: #8c8c8c; }
.osum b { font-size: 17px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.osum .g b { color: var(--ok); }

/* ═══ Nạp tiền ═══════════════════════════════════════════════════════════ */
.wtop { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px; margin: 0 4px 10px; align-items: stretch; }
.wcard { border-radius: 18px; padding: 20px; color: #fff; display: flex; flex-direction: column; background: linear-gradient(135deg, #04294a 0%, #0b5f86 60%, #0b7fa3 100%); position: relative; overflow: hidden; }
.wcard::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(126,232,255,.35), transparent 70%); }
.wcard .lb { font-size: 14px; line-height: 1.4; opacity: .8; position: relative; z-index: 1; }
.wcard .v { display: block; font-size: 34px; line-height: 1.15; font-weight: 600; margin: 8px 0 16px; font-variant-numeric: tabular-nums; position: relative; z-index: 1; }
.wcard small { display: block; margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16); font-size: 12.5px; line-height: 1.5; opacity: .85; position: relative; z-index: 1; }
.wform { border-radius: 18px; padding: 20px; box-shadow: inset 0 0 0 1px #d6eef6; display: flex; flex-direction: column; gap: 12px; }
.wform .lb { font-size: 14px; line-height: 1.4; color: var(--c); }
.wform .fine { margin: 0; font-size: 12px; color: #8c8c8c; line-height: 1.5; }
.amts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amt-c { height: 44px; border: 0; border-radius: 12px; background: #f2f2f2; color: var(--ink); font: inherit; font-size: 15px; font-weight: 500; cursor: pointer;
  transition: background .15s, box-shadow .15s, color .15s; }
.amt-c:hover { background: var(--c-bg2); }
.amt-c.on { background: var(--c-bg); color: var(--c-dk); box-shadow: inset 0 0 0 1.5px var(--c); }
.amt-in { position: relative; }
.amt-in input { width: 100%; height: 48px; border: 0; border-radius: 999px; background: #f2f2f2; padding: 0 40px 0 20px; font: inherit; font-size: 18px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.amt-in input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
.amt-in span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: #8c8c8c; }
.wform .cmsg { margin: 0; }
.wform.qr { flex-direction: row; align-items: flex-start; gap: 18px; }
.wform.qr .qrbox { width: 200px; }
.qri { flex: 1; min-width: 0; }
.qri .r { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; color: #8c8c8c; padding: 4px 0; }
.qri .r b { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.qri .r.code b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--c-dk); font-weight: 700; }
.qri .cpy { width: 26px; height: 26px; border-radius: 7px; }
.qri .cpy svg { width: 13px; height: 13px; }
.qri .acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.qri .more { margin-top: 10px; }
.wform.done { align-items: center; text-align: center; }
.wform.done .okc { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; animation: pop-in .5s var(--pop) both; }
.wform.done .okc svg { width: 30px; height: 30px; }
.wform.done b { font-size: 20px; font-weight: 600; color: var(--ink); }
.wform.done span { color: #6b6b6b; font-size: 14px; }

/* ═══ Cách thanh toán (xác nhận) + trả bằng số dư (chuyển khoản) ═══════════ */
.paym { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 12px; }
.paym .lb { font-size: 13.5px; color: var(--ink); font-weight: 500; }
.pm { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--hr);
  font: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s, background .15s; }
.pm:hover:not(:disabled) { background: var(--c-bg2); }
.pm.on { box-shadow: inset 0 0 0 1.5px var(--c); background: var(--c-bg2); }
.pm:disabled { cursor: default; opacity: .75; }
.pm .rd { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px #b9c2c7; flex-shrink: 0; transition: box-shadow .15s; }
.pm.on .rd { box-shadow: inset 0 0 0 5px var(--c); }
.pm .pi { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--c-bg); color: var(--c-dk); flex-shrink: 0; }
.pm .pi svg { width: 17px; height: 17px; }
.pm .pt { display: flex; flex-direction: column; min-width: 0; }
.pm .pt b { font-size: 14px; font-weight: 500; color: var(--ink); }
.pm .pt small { font-size: 12px; color: #8c8c8c; }
.pm .pt small a { color: var(--c); text-decoration: underline; }
.paywal { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.paywal .or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: #a0a0a0; }
.paywal .or::before, .paywal .or::after { content: ""; flex: 1; border-top: 1px solid var(--hr); }
.paywal small { font-size: 12px; color: #8c8c8c; text-align: center; }
.paywal small a { color: var(--c); text-decoration: underline; }

/* ═══ Quản trị ═══════════════════════════════════════════════════════════ */
.adm-hint { margin: -6px 14px 14px; font-size: 13px; color: #6b6b6b; }
.adm-list { display: grid; gap: 8px; margin: 0 4px; }
.adm-it { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--hr); background: #fff; }
.adm-it.off { background: #fafafa; }
.adm-it.off .tx { opacity: .6; }
.adm-it .ord { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #f2f2f2; font-size: 12.5px; color: #6b6b6b; flex-shrink: 0; font-variant-numeric: tabular-nums; }
.adm-it .tx { flex: 1; min-width: 0; }
.adm-it .tx b { display: block; font-size: 15px; font-weight: 500; color: var(--ink); }
.adm-it .tx p { margin: 2px 0 0; font-size: 13px; color: #6b6b6b; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: pre-line; }
.adm-it .tx span { display: block; margin-top: 2px; }
.adm-it .th { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; background: #e8ecef; }
.adm-it .acts { display: flex; gap: 6px; flex-shrink: 0; }
.adm-it .bt.del { color: #e0243a; box-shadow: inset 0 0 0 1.5px #f3a8b1; }
.adm-it .bt.del:hover { background: #fdecee; color: #c41e30; box-shadow: inset 0 0 0 1.5px #e0243a; }
.adm-it .bt svg { width: 13px; height: 13px; }
.stk { font-size: 12.5px; color: #6b6b6b; white-space: nowrap; min-width: 120px; text-align: right; }
.stk b { font-size: 15px; color: #067a54; }
.stk.low b { color: #d08a00; }
.stk.none b { color: #e0243a; }
.stk.na { color: #b0b0b0; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: #f2f2f2; margin: 0 4px 12px; }
.seg button { height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 13.5px; color: #4a5a62; cursor: pointer; }
.seg button.on { background: #fff; color: var(--c-dk); box-shadow: 0 1px 4px rgba(0,0,0,.08); font-weight: 500; }
.dlg.wide { max-width: 600px; }
.dlg .seg { margin: 0; align-self: flex-start; }
.field textarea { border: 0; border-radius: 14px; background: #f2f2f2; padding: 12px 16px; font: inherit; font-size: 14.5px; color: var(--ink); resize: vertical; line-height: 1.5; }
.field textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
#kL { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
.frow { display: flex; align-items: flex-end; gap: 16px; }
.frow .field { width: 120px; }
.chk { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink); margin-bottom: 26px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--c); }

@media (max-width: 900px) {
  .wtop { grid-template-columns: minmax(0, 1fr); }
  .osum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .gh, .res .keys .gh { margin-left: 0; }
  .gh.mn { flex-wrap: wrap; border-radius: 16px; }
  .gh.mn .gh-tx { flex-basis: calc(100% - 40px); }
  .gh.mn .bt { margin-left: auto; }
  .otbl { box-shadow: none; border-radius: 0; margin: 0; }
  .oln, .otbl.led .oln { grid-template-columns: 1fr 1fr; gap: 6px 12px; padding: 12px 4px; }
  .oln.head { display: none; }
  .oln .c-don { grid-column: 1 / -1; }
  .oln > [data-lb] { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; text-align: right; }
  .oln > [data-lb]::before { content: attr(data-lb); font-size: 12px; color: #8c8c8c; font-weight: 400; }
  .oln .c-giam { flex-direction: row; }
  .oln .c-ngay, .oln .c-tra { grid-column: 1 / -1; }
  .oln > [data-lb] { white-space: nowrap; }
  .wform.qr { flex-direction: column; align-items: center; }
  .wform.qr .qri { width: 100%; }
  .rkcard .r1 { flex-direction: column; align-items: flex-start; }
  .adm-it { flex-wrap: wrap; }
  .adm-it .acts { width: 100%; justify-content: flex-end; }
  .stk { min-width: 0; }
  .sumrow[class*="rkc-"] .rkcol { margin-left: 0; }
}

/* Thẻ "Hạng của bạn": viền + nhãn theo màu hạng (--rkc: màu đậm, --rkn: nền nhạt) */
.tier { --rkc: #0b7fa3; --rkn: #f2fbfe; }
.tier.t-bronze   { --rkc: #b4652b; --rkn: #fdf4ec; }
.tier.t-silver   { --rkc: #7d8b94; --rkn: #f4f6f8; }
.tier.t-gold     { --rkc: #d39200; --rkn: #fffaea; }
.tier.t-diamond  { --rkc: #0796c8; --rkn: #eefbff; }
.tier.t-platinum { --rkc: #7b4fe0; --rkn: #f6f1ff; }
.tier.cur { box-shadow: inset 0 0 0 2px var(--rkc); background: linear-gradient(180deg, var(--rkn), #fff 55%); }
.tier.cur:hover { box-shadow: inset 0 0 0 2px var(--rkc), 0 10px 24px rgba(11,127,163,.1); }
.tier .h .tag { color: #fff; background: var(--rkc); font-size: 11px; line-height: 1; padding: 5px 10px 4px; white-space: nowrap; }

/* Nút chép trong khối nhận hàng / tiêu đề đơn / QR: giữ nền xanh khi vừa chép */
.acct-page .gh.mn .cpy.done, .acct-page .bh h2 .cpy.done, .acct-page .qri .cpy.done, .acct-page .sumc .cpy.done { background: var(--ok); color: #fff; }

/* Dòng giỏ / xác nhận / chuyển khoản: giá xếp dọc, căn phải (giống giá trong cửa sổ game) */
.row .tx .sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.row .tx .sub > span { display: inline; margin: 0; }
.dl.in { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 999px; background: #e6f8f0;
  color: #067a54; font-size: 11.5px; font-weight: 500; line-height: 1; }
.dl.in svg { width: 7px; height: 10px; flex-shrink: 0; }
.row .prc { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; min-width: 110px; flex-shrink: 0; }
.row .prc .pr { min-width: 0; font-size: 21px; line-height: 1.1; }
.row .was { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; line-height: 1; white-space: nowrap; }
.row .was s { color: #a1a1a1; font-variant-numeric: tabular-nums; }
.row .was em { font-style: normal; font-size: 11px; font-weight: 600; color: #fff; background: #e0243a; border-radius: 6px; padding: 3px 6px 2px; }
@media (max-width: 640px) {
  .row .prc { min-width: 0; margin-left: auto; }
  .row .prc .pr { font-size: 18px; }
}
.it .tx span .dl.in, .res .tx span .dl.in { display: inline-flex; margin-left: 8px; vertical-align: 1px; }

/* ═══ Xác nhận: mua kèm · yêu cầu đặc biệt · lưu ý ═══════════════════════ */
.xn-l { padding-right: 32px; min-width: 0; }
.xn-l .rows { padding-right: 0; }
.xn-opts { display: grid; gap: 14px; margin-top: 26px; }
.xs { border-radius: 16px; box-shadow: inset 0 0 0 1px #d6eef6; padding: 16px 18px; }
.xs h3 { margin: 0 0 12px; font-size: 15.5px; font-weight: 500; color: var(--c); display: flex; align-items: center; gap: 8px; }
.xs h3 svg { width: 17px; height: 17px; }
.xl { display: grid; gap: 8px; }
.xo { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: #f6f9fa; cursor: pointer; }
.xo:hover { background: var(--c-bg2); }
.xo.on { background: var(--c-bg); box-shadow: inset 0 0 0 1.5px var(--c); }
.xo input { position: absolute; opacity: 0; pointer-events: none; }
.xo.het { cursor: not-allowed; opacity: .55; }
.xo.het:hover { background: #f6f9fa; }
.xo .bx { width: 20px; height: 20px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px #b9c2c7; background: #fff; display: grid; place-items: center; color: transparent; flex-shrink: 0; }
.xo .bx svg { width: 13px; height: 13px; }
.xo.on .bx { background: var(--c); box-shadow: none; color: #fff; }
.xo input:focus-visible + .bx { outline: 2px solid var(--c); outline-offset: 2px; }
.xo .xt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xo .xt b { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.xo .xt small { font-size: 12.5px; color: #8c8c8c; line-height: 1.4; }
.xo .xg { font-size: 15px; font-weight: 600; color: var(--c-dk); white-space: nowrap; }
.xs textarea { width: 100%; margin-top: 10px; border: 0; border-radius: 12px; background: #f2f2f2; padding: 10px 14px; font: inherit; font-size: 14px;
  color: var(--ink); resize: vertical; min-height: 44px; }
.xs textarea:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--c); }
.xs.luuy { background: #fffaf0; box-shadow: inset 0 0 0 1px #f5e2b3; }
.xs.luuy h3 { color: #a86b00; }
.xs.luuy ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; color: #5c4a1e; line-height: 1.5; }
.sumc .r .xt { color: var(--c-dk); font-weight: 500; }

/* Yêu cầu / mua kèm của một đơn */
.ycd { margin: 14px 14px 0; padding: 12px 16px; border-radius: 14px; background: #f6f9fa; display: grid; gap: 8px; }
.pay .ycd { margin: 14px 0 0; }
.ycd-r { display: flex; gap: 12px; align-items: baseline; }
.ycd-r .lb { width: 70px; flex-shrink: 0; font-size: 12.5px; color: #8c8c8c; }
.ycd-r > div { display: flex; flex-wrap: wrap; gap: 6px; }
.ycd-r p { margin: 0; font-size: 13.5px; color: var(--ink); white-space: pre-line; }
.ycd .tg { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px 3px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px #d6eef6;
  font-size: 12.5px; color: var(--ink); line-height: 1.2; }
.ycd .tg svg { width: 12px; height: 12px; color: var(--ok); }
.ycd .tg.kem { background: var(--c-bg); box-shadow: none; color: var(--c-dk); font-weight: 500; }
.ycd-f { margin: 2px 0 0; font-size: 12.5px; color: #6b6b6b; }
.ycd-f b { font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--c-dk); }
.res-yc { width: 100%; max-width: 640px; margin: 14px auto 0; text-align: left; }
.res-yc .ycd { margin: 0; }
@media (max-width: 900px) { .xn-l { padding-right: 0; } }

/* ═══ Trang chuyển khoản: một khung QR rộng (QR · các bước · thông tin chuyển khoản) ═══ */
.qrp { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; padding: 24px;
  border-radius: 20px; box-shadow: inset 0 0 0 1px #d6eef6; background: linear-gradient(120deg, #f2fbfe, #fff 60%); margin-bottom: 30px; }
.qrp-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.qrp-qr .qrbox { width: 220px; }
.qrp-buoc h2 { margin: 4px 0 10px; font-size: 22px; font-weight: 500; color: var(--ink); }
.qrp-buoc ol { margin: 0 0 14px; padding-left: 18px; font-size: 14px; color: var(--ink); display: grid; gap: 8px; line-height: 1.45; }
.qrp-buoc .live { margin-top: 0; }
.qrp-bk { border-left: 1px solid #d6eef6; padding-left: 24px; }
.qrp-bk .r { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13.5px; color: #8c8c8c; padding: 5px 0; }
.qrp-bk .r + .r { border-top: 1px dashed #e3ecf0; }
.qrp-bk .r b { color: var(--ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; text-align: right; }
.qrp-bk .r.amt b { font-size: 18px; font-weight: 700; color: var(--c-dk); font-variant-numeric: tabular-nums; }
.qrp-bk .r.code b { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .08em; color: var(--c-dk); font-weight: 700; font-size: 15px; }
.qrp-bk .cpy { width: 28px; height: 28px; border-radius: 8px; }
.qrp-bk .cpy svg { width: 14px; height: 14px; }
.acct-page .qrp-bk .cpy.done { background: var(--ok); color: #fff; }
.qrp-bk .warn { margin-top: 10px; font-size: 12px; line-height: 1.5; color: #9a6400; background: #fff6e0; border-radius: 12px; padding: 9px 12px; }
.qrp + .pay .rows { margin-top: 0; }
.pay + .demo-pay { margin-top: 26px; }
.pay .sumc .paywal { margin-top: 16px; }
@media (max-width: 1080px) {
  .qrp { grid-template-columns: auto minmax(0, 1fr); }
  .qrp-bk { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid #d6eef6; padding-top: 14px; }
}
@media (max-width: 640px) {
  .qrp { grid-template-columns: minmax(0, 1fr); padding: 18px; gap: 18px; }
  .qrp-buoc { text-align: left; }
  .qrp-bk { grid-column: auto; }
}

/* ═══ Tin tức & Hỏi đáp (theo Figma TSM "Tin Tức & Khuyến Mãi" + "Tin Tức 1") ═══════
   Dùng lớp sẵn của web: .crumbs, .filter-chip, .pc-find-box. Chỉ thêm lưới thẻ, bìa, trang bài. */
.hd-page main { padding-top: 26px; padding-bottom: 60px; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 8px 0 16px; }
.np-head h1 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 700; color: var(--ink); }
.np-head h2 { margin: 0; font-size: 20px; font-weight: 700; color: var(--ink); }
.np-tabs { margin-bottom: 20px; }
.np-tabs a.filter-chip { text-decoration: none; }
.np-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.np-card { display: flex; flex-direction: column; gap: 8px; color: var(--ink); min-width: 0; }
.np-card:hover { color: var(--ink); }
.np-card:hover .np-title { color: var(--cyan-700); }
.np-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.np-date { font-size: 12.5px; color: var(--muted); }
.np-empty { padding: 40px 0; text-align: center; color: var(--muted); }

/* Ảnh bìa 16:9 bo góc; không có ảnh thì vẽ nền xanh kiểu banner EVO */
.np-cover { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #e8eef2; }
.np-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.np-cover.is-css { background: radial-gradient(120% 140% at 18% 0%, #23c8f5 0%, #0a86c9 38%, #0a4f8f 68%, #06315f 100%); color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 16px 18px; gap: 4px; }
.np-cover .np-grid { position: absolute; inset: 0; display: block; gap: 0;
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 28px 28px; }
.np-cover .np-glow { position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(126, 232, 255, .35), transparent 70%); }
.np-tag { position: absolute; left: 18px; top: 16px; display: inline-flex; gap: 4px; padding: 4px 12px; background: #fff; color: var(--navy, #04294a);
  font-size: 12px; transform: skewX(-12deg); }
.np-tag b, .np-tag span { transform: skewX(12deg); }
.np-kind { position: relative; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.np-big { position: relative; font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; font-style: italic; line-height: 1.2; text-transform: uppercase;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 2px 8px rgba(2, 32, 62, .35); }

/* Phân trang */
.np-pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.np-pg { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line); display: inline-flex; align-items: center;
  justify-content: center; font-size: 14px; font-weight: 600; color: var(--muted); background: #fff; }
.np-pg:hover { border-color: var(--cyan-600); color: var(--cyan-600); }
.np-pg.is-on { background: var(--cyan-600); border-color: var(--cyan-600); color: #fff; }
.np-pg.is-off { opacity: .4; }

/* Một bài */
.np-art { max-width: 760px; margin: 8px auto 0; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.np-cd { display: inline-block; padding: 4px 12px; border-radius: 999px; background: #e6f6fc; color: #0b7fa3; font-size: 12.5px; font-weight: 600; }
.np-by { display: flex; align-items: center; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid #e3edf2; align-self: stretch; font-size: 13.5px; color: #6b7a85; }
.np-by img { width: 30px; height: auto; }
.np-by b { color: var(--ink); font-weight: 600; }
.np-art .np-cover { width: 100%; border-radius: 18px; }
.np-art .np-cover.is-css { padding: 28px 32px; }
.np-art .np-cover .np-big { font-size: clamp(22px, 3vw, 34px); }
.np-art h1 { margin: 12px 0 12px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: var(--ink); line-height: 1.3; }
.np-body { margin-top: 20px; text-align: left; align-self: stretch; }
.np-body p { margin: 0 0 14px; font-size: 15.5px; line-height: 1.75; color: #2f3d47; white-space: pre-line; }
.np-body h2 { margin: 26px 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.np-body ul, .np-body ol { margin: 0 0 16px; padding-left: 22px; }
.np-body li { margin: 0 0 8px; font-size: 15.5px; line-height: 1.7; color: #2f3d47; }
.np-body li::marker { color: #0b7fa3; font-weight: 700; }
.np-more { margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--line-soft); }
.np-all { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--cyan-600); }

@media (max-width: 900px) { .np-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .np-head { flex-direction: column; align-items: stretch; }
  .np-head .pc-find { width: 100%; }
  .np-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Huy hiệu hạng dạng ảnh SVG (bộ rank-icons-evo) */
img.medal { display: block; object-fit: contain; flex-shrink: 0; }
.tier .h img.medal { width: 46px; height: 46px; }
.rkcard .ic img.medal { width: 52px; height: 52px; }
.sumrow .rk img.medal { width: 48px; height: 48px; }
.acct-page .tier:hover .h img.medal { transform: none; }


/* ═══ Đồng bộ chuyển động với web chính: không có hiệu ứng hiện dần / nhấc / phóng tự chế.
   Chỉ giữ đổi màu khi rê chuột (như trang Hỗ trợ, trang chủ). ═══ */
.acct-page .rv, .hd-page .rv { animation: none !important; }
.acct-page .bt:hover:not(:disabled), .acct-page .bt:active:not(:disabled) { transform: none; box-shadow: none; }
.acct-page .row:hover .th, .acct-page .tier:hover, .acct-page .cpc:hover, .acct-page .row .x:hover,
.acct-page .tier:hover .h svg, .acct-page .empty .art, .acct-page .rkcard .ic svg { transform: none; animation: none; }
.acct-page .tier:hover { box-shadow: inset 0 0 0 1px #9fd9ec; }
.acct-page .tier.cur:hover { box-shadow: inset 0 0 0 2px var(--rkc); }
.acct-page .cpc:hover { box-shadow: inset 0 0 0 1px #9fd9ec; }
.acct-page .rkcard::after { display: none; }
.acct-page .steps .s::after, .acct-page .steps .dot { transition: none; animation: none; }

/* Món mua kèm (acc Steam) + hàng giao tay đã giao */
.it .th.kem-ic { display: grid; place-items: center; background: var(--c-bg); color: var(--c-dk); }
.it .th.kem-ic svg { width: 22px; height: 22px; }
.gh.mn.ok { background: #e6f8f0; box-shadow: inset 0 0 0 1px #bfe9d6; }
.gh.mn.ok .gh-ic { color: var(--ok); }
.note.refund { background: #f1e9ff; color: #4b2aa8; }


/* Nhãn "Có sẵn": luôn là viên inline-flex (icon cách chữ), kể cả trong dòng game */
.row .tx .sub > span.dl.in, .row .tx span.dl.in, .it .tx span.dl.in, .res .tx span.dl.in { display: inline-flex; align-items: center; gap: 4px; }

/* ═══ Điện thoại: dễ nhìn, không cắt chữ ═══════════════════════════════════ */
@media (max-width: 640px) {
  /* Các bước mua hàng: chỉ ghi tên bước đang ở, các bước khác chỉ còn chấm */
  .steps { margin-bottom: 22px; }
  .steps .s { font-size: 0; gap: 8px; }
  .steps .s.on { font-size: 12.5px; font-weight: 600; color: var(--c); white-space: nowrap; }
  /* Dòng game (kho game, đơn, thanh toán xong): tên 2 dòng, nhãn trạng thái xuống dưới tên */
  .it { padding-left: 2px; padding-right: 2px; }
  .it .top { flex-wrap: wrap; row-gap: 6px; align-items: flex-start; }
  .it .tx b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.35; }
  .it .top:has(> .pill) .tx { flex-basis: calc(100% - 60px); }
  .it .top > .pill { margin-left: 60px; height: 24px; padding: 0 10px; font-size: 12px; }
  .it .tx span { line-height: 1.5; }
  /* Tiêu đề khối: dòng phụ (giờ thanh toán…) xuống dòng riêng */
  .bh span.more { margin-left: 0; width: 100%; font-size: 12.5px; }
  .bh h2 { font-size: 18px; }
  /* Bài viết */
  .np-art h1 { font-size: 23px; }
  .np-body p, .np-body li { font-size: 15px; }
  .np-body h2 { font-size: 18px; margin-top: 22px; }
}
@media (max-width: 640px) {
  /* Thẻ hạng: số dư + Nạp tiền gọn một hàng, chữ không bị bẻ dọc */
  .wal { flex-wrap: wrap; gap: 8px; max-width: 100%; }
  .wal-lb, .wal-v b { white-space: nowrap; }
  .wal-v { flex: 1 1 auto; min-width: 0; }
}

/* ── Nạp tiền: một khung trắng, dòng số dư ở trên, chọn tiền / QR bên dưới ── */
.wbox { margin: 0 4px 6px; padding: 18px 22px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px #d6eef6; }
.wsum { display: flex; justify-content: space-between; align-items: flex-end; gap: 6px 16px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid #e6f3f8; }
.wsum .lb { display: block; font-size: 13px; color: #8c8c8c; margin-bottom: 2px; }
.wsum .v { display: block; font-size: 28px; line-height: 1.15; font-weight: 600; color: var(--c); font-variant-numeric: tabular-nums; }
.wsum small { font-size: 12.5px; color: #8c8c8c; padding-bottom: 4px; }
.wbox .wform { box-shadow: none; padding: 0; border-radius: 0; }
.wbox .amts { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.wbox .wend { align-items: flex-start; }
.wbox .wend .note { margin: 0; }
.wrow { display: flex; gap: 10px; align-items: stretch; }
.wrow .amt-in { flex: 1; min-width: 0; }
.wrow .bt { height: 48px; padding: 0 26px; flex-shrink: 0; }
@media (max-width: 860px) {
  .wbox .amts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .wbox { padding: 16px; }
  .wsum .v { font-size: 24px; }
  .wsum small { padding-bottom: 0; }
  .wrow { flex-direction: column; }
  .wrow .bt { width: 100%; }
}

/* Hàng "Giao hàng": nhắn Fanpage / Discord + xem hướng dẫn */
.gh.mn.nh { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 12px; border-radius: 16px; }
.gh.mn.nh .nh-r { display: flex; align-items: center; gap: 10px; }
.gh.mn.nh .nh-bts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-left: 38px; }
.gh.mn.nh .bt.sm { height: 34px; padding: 0 14px; }
.gh.mn.nh .bt.dc { background: #5865f2; }
.gh.mn.nh .bt.dc:hover { background: #4752c4; }
.nh-hd { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: 13px; font-weight: 600; color: var(--c); text-decoration: none; }
.nh-hd:hover { text-decoration: underline; }
.nh-hd svg { width: 14px; height: 14px; }
@media (max-width: 640px) {
  .gh.mn.nh { border-radius: 16px; }
  .gh.mn.nh .nh-bts { padding-left: 0; }
  .gh.mn.nh .bt.sm { flex: 1; justify-content: center; }
  .nh-hd { flex-basis: 100%; justify-content: center; margin: 2px 0 0; }
}

/* Thẻ bài: tác giả + ngày đăng dưới tiêu đề (bản nhỏ của .np-by) */
.np-by.np-by-sm { padding: 0; border: 0; gap: 6px; font-size: 12.5px; }
.np-by.np-by-sm img { width: 22px; }
.np-by.np-by-sm b { font-weight: 600; font-size: 12.5px; }

/* ═══ Bìa bài viết tự vẽ (bài chưa gắn ảnh) - logo EVO + khiên mờ, nền navy như header ═══ */
.np-cover.is-css { display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px 18px; color: #fff;
  background: radial-gradient(85% 120% at 0% 100%, rgba(0, 194, 247, .32) 0%, rgba(0, 194, 247, 0) 58%),
              linear-gradient(135deg, #031a30 0%, #04294a 42%, #0b5f86 100%); }
.np-cover.is-css::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 24px); }
.np-cover.is-css::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, #00c2f7, rgba(0, 194, 247, 0)); }
.bia-mark { position: absolute; right: -7%; bottom: -16%; width: 54%; aspect-ratio: 864 / 772; pointer-events: none;
  background: url(/img/evo-mark.webp) center / contain no-repeat; opacity: .14; transform: rotate(-9deg); }
.np-cover .bia-logo { position: relative; display: block; height: 22px; width: auto; object-fit: contain; align-self: flex-start; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.bia-b { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 80%; }
.bia-k { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: #7ee8ff; background: rgba(126, 232, 255, .14); box-shadow: inset 0 0 0 1px rgba(126, 232, 255, .38); }
.bia-t { font-size: clamp(16px, 1.45vw, 19px); font-weight: 700; line-height: 1.3; text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bia-tin-tuc .bia-k { color: #b9d4ff; background: rgba(150, 190, 255, .14); box-shadow: inset 0 0 0 1px rgba(150, 190, 255, .4); }
.bia-khuyen-mai .bia-k { color: #ffd36b; background: rgba(255, 199, 80, .14); box-shadow: inset 0 0 0 1px rgba(255, 199, 80, .45); }
.bia-khuyen-mai.np-cover.is-css::after { background: linear-gradient(90deg, #ffc750, rgba(255, 199, 80, 0)); }
@media (max-width: 560px) {
  .np-cover.is-css { padding: 14px 16px 16px; }
  .bia-t { font-size: 18px; }
}

/* Ảnh trong bài viết: không bao giờ phóng to quá cỡ thật, không vượt cột chữ, ảnh dọc
   (poster, ảnh chụp điện thoại) bị chặn chiều cao rồi căn giữa. Bấm vào xem ảnh đầy đủ. */
.np-fig { margin: 22px 0 26px; display: flex; flex-direction: column; align-items: center; }
.np-fig img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(72vh, 640px);
  object-fit: contain; border-radius: 12px; border: 1px solid #e3eaef; background: #f3f6f8; cursor: zoom-in; }
.np-fig figcaption { margin-top: 8px; max-width: 100%; font-size: 13px; line-height: 1.5; color: var(--muted); text-align: center; }
/* Hai ảnh trở lên liền nhau: lưới 2 cột, ô cùng cỡ, ảnh giữ nguyên tỉ lệ trong ô */
.np-gal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 26px; }
.np-gal .np-fig { margin: 0; align-items: stretch; }
.np-gal .np-fig img { width: 100%; max-height: none; aspect-ratio: 4 / 3; }
.np-gal .np-fig:last-child:nth-child(odd) { grid-column: 1 / -1; }
.np-gal .np-fig:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
@media (max-width: 560px) {
  .np-fig img { max-height: 70vh; border-radius: 10px; }
  .np-gal { gap: 8px; }
}

/* Xem ảnh to (bấm vào ảnh trong bài) */
.np-lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  padding: 56px 16px 64px; background: rgba(8, 20, 32, .9); opacity: 0; transition: opacity .15s ease; }
.np-lb.is-on { opacity: 1; }
.np-lb img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; background: #fff; box-shadow: 0 10px 40px rgba(0, 0, 0, .35); }
.np-lb-cap { position: absolute; left: 16px; right: 16px; bottom: 18px; text-align: center; font-size: 13.5px; line-height: 1.5; color: #dbe6ee; }
.np-lb-btn { position: absolute; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0;
  border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.np-lb-btn:hover, .np-lb-btn:focus-visible { background: rgba(255, 255, 255, .24); outline: none; }
.np-lb-x { top: 10px; right: 12px; }
.np-lb-prev { left: 12px; top: 50%; margin-top: -22px; }
.np-lb-next { right: 12px; top: 50%; margin-top: -22px; }
.np-lb-n { position: absolute; top: 20px; left: 18px; font-size: 13px; color: #b9c9d6; }
.np-lb-khung { display: contents; }
html.np-lb-mo, html.np-lb-mo body { overflow: hidden; }

.tier.t-member { --rk: linear-gradient(90deg, #bfeefe, #00c2f7, #0b7fa3); }

/* Ô chỉ xem (email): không phải ô nhập */
.field .ro { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; background: #f2f2f2; color: #6b6b6b; font-size: 15px; }
.field .ro svg { width: 14px; height: 14px; color: #9aa3a8; flex-shrink: 0; }
.field .ro span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Logo trên bìa to hơn cho dễ đọc */
.np-cover .bia-logo { height: 30px; }
@media (max-width: 560px) { .np-cover .bia-logo { height: 26px; } }
/* Tiêu đề trên bìa trải dài hơn (ít xuống dòng) */
.bia-b { max-width: 94%; }
.bia-t { font-size: clamp(17px, 1.6vw, 21px); -webkit-line-clamp: 2; }

/* Xác nhận: link "Xem chi tiết" của món mua kèm */
.xo .xo-link { margin-left: 6px; font-weight: 600; color: var(--c); text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.xo .xo-link.xo-in { margin-left: 0; }
.xo .xo-link:hover { text-decoration: underline; }

/* ═══ Khung xương khi đang tải (thay cho chữ "Đang tải…") ═══════════════════ */
.skx { display: block; border-radius: 8px; background: linear-gradient(90deg, #eef2f4 0, #e1e8ec 40%, #eef2f4 80%) #eef2f4;
  background-size: 1000px 100%; animation: shimmer 1.3s linear infinite; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pgsk { padding: 4px 0 40px; }
.pgsk-title { height: 30px; width: min(280px, 70%); border-radius: 10px; margin: 2px 0 26px; }
.pgsk-steps { display: flex; align-items: center; margin: 4px 0 40px; }
.pgsk-steps i { width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0; }
.pgsk-steps b { flex: 1; height: 3px; margin: 0 6px; border-radius: 2px; }
.pgsk-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.pgsk-row { display: flex; align-items: center; gap: 14px; padding: 14px 4px; border-bottom: 1px solid #f0f2f4; }
.pgsk-th { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; }
.pgsk-tx { flex: 1; min-width: 0; display: grid; gap: 9px; }
.pgsk-l1 { height: 14px; width: 62%; }
.pgsk-l2 { height: 12px; width: 38%; }
.pgsk-l1.w2 { width: 48%; }
.pgsk-pr { width: 84px; height: 18px; flex-shrink: 0; }
.pgsk-card { height: 340px; border-radius: 18px; }
.pgsk-box { height: 150px; border-radius: 16px; margin-top: 18px; }
.pgsk-box.sm { height: 110px; }
.pgsk-blk { display: grid; align-content: start; gap: 10px; padding: 18px; border-radius: 16px; box-shadow: inset 0 0 0 1px #edf1f3; }
.pgsk-qr { display: flex; gap: 28px; align-items: center; padding: 24px; border-radius: 18px; box-shadow: inset 0 0 0 1px #edf1f3; }
.pgsk-qri { width: 220px; height: 220px; border-radius: 16px; flex-shrink: 0; }
.pgsk-btn { height: 44px; width: 200px; border-radius: 999px; margin-top: 8px; }
.pgsk-me { display: flex; align-items: center; gap: 18px; margin-bottom: 8px; }
.pgsk-ava { width: 84px; height: 84px; border-radius: 50%; flex-shrink: 0; }
.pgsk-nav { height: 40px; border-radius: 12px; margin-bottom: 6px; }
.pgsk-chips { display: flex; gap: 8px; margin-bottom: 22px; }
.pgsk-chips i { width: 96px; height: 34px; border-radius: 999px; }
.pgsk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 22px; }
.pgsk-grid > div { display: grid; gap: 10px; }
.pgsk-cover { aspect-ratio: 16 / 9; border-radius: 14px; }
.evo-faq-sk { height: 52px; border-radius: 12px; margin-bottom: 10px; }
@media (max-width: 900px) {
  .pgsk-cols { grid-template-columns: minmax(0, 1fr); }
  .pgsk-card { height: 220px; }
  .pgsk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .pgsk-qr { flex-direction: column; align-items: stretch; }
  .pgsk-qri { width: 100%; height: auto; aspect-ratio: 1; max-width: 260px; margin: 0 auto; }
  .pgsk-grid { grid-template-columns: minmax(0, 1fr); }
  .pgsk-th { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) { .skx { animation: none; } }

/* Yêu cầu thêm miễn phí: nhãn xanh lá thay cho giá */
.xo .xg.free { font-size: 13px; color: #067a54; background: #e6f8f0; padding: 3px 10px; border-radius: 999px; }

/* Lời nhắc: đánh giá game vừa mua nhận 1.000đ */
.dgt { margin: 22px 0 6px; padding: 16px 18px; border-radius: 18px; background: linear-gradient(135deg, #fff8e6, #fff 70%); box-shadow: inset 0 0 0 1px #f6e2b0; }
.dgt-h { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.dgt-ic { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: #ffe7a3; color: #8a5a00; }
.dgt-ic svg { width: 18px; height: 18px; display: block; }
.dgt-h b { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.dgt-h b em { font-style: normal; color: #b7791f; }
.dgt-h > div > span { display: block; margin-top: 2px; font-size: 12.5px; color: #7a6a45; }
.dgt-ds { display: grid; gap: 8px; }
.dgt-it { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px #f3e6c4; }
.dgt-it img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; flex-shrink: 0; background: #eef2f4; }
.dgt-tx { flex: 1; min-width: 0; }
.dgt-tx b { display: block; font-size: 14.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dgt-tx span { font-size: 12px; color: #b7791f; }
.dgt-it .bt.sm { flex-shrink: 0; }

.dgt-more { margin-top: 10px; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 13.5px; font-weight: 600; color: #b7791f; cursor: pointer; }
.dgt-more:hover { text-decoration: underline; }

/* ── Hạng thành viên: khung "Hạng của bạn" đi theo màu hạng ───────────────────
   Viền 2px vẽ bằng chính dải màu --rk của hạng (dải trên đầu thẻ): hạng có màu
   gradient thì viền cũng gradient, hạng có dải chạy (Vàng, Bạch Kim, Kim Cương)
   thì viền chạy theo. Vẽ bằng ::after + mask nên giữ được bo góc. */
.tier.t-member { --rk: linear-gradient(90deg, #7ee8ff, #0b7fa3); }
.tier.cur, .tier.cur:hover, .acct-page .tier.cur:hover { box-shadow: none; }
.tier.cur::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 2px; pointer-events: none;
  background: var(--rk, var(--rkc));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.tier.cur.t-gold::after, .tier.cur.t-diamond::after, .tier.cur.t-platinum::after { background-size: 200% 100%; animation: rk-band 3s linear infinite; }
/* Thẻ hạng hiện tại đã có viền màu đủ 4 cạnh: bỏ dải 4px trên đầu để mép trên không bị dày + lệch màu */
.tier.cur::before { display: none; }
.tier.cur:hover { box-shadow: 0 10px 24px rgba(11, 127, 163, .1); }
@media (prefers-reduced-motion: reduce) { .tier.cur::after { animation: none; } }
/* Trang /hoi-dap dựng sẵn (og-pages.py): tiêu đề danh sách bài trước khi JS vẽ lại */
.np-h1 { margin: 8px 0 4px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; color: var(--ink); }
/* Mã khuyến mãi chỉ cho một số game / thể loại */
.cpc .tx .cp-chi { display: block; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--c-dk, #0b7fa3); }

/* Dòng phụ dưới tên game (đơn hàng, kho game, kết quả): chữ phiên bản và nhãn "Có sẵn" căn giữa trên cùng một hàng.
   (Trước đây nhãn ăn margin-top của ".it .tx span" + vertical-align nên bị lệch.) */
.it .tx > span, .res .tx > span { display: flex; align-items: center; flex-wrap: wrap; row-gap: 2px; }
.it .tx > span .dl.in, .res .tx > span .dl.in { margin: 0 0 0 8px; vertical-align: 0; }
