/* Trang web Phong Thần — giao diện tối, vàng kim, đỏ son */
:root {
  --bg: #0c0806;
  --bg2: #120c08;
  --panel: #17100b;
  --panel2: #20160e;
  --line: rgba(214, 172, 98, .18);
  --line2: rgba(214, 172, 98, .34);
  --gold: #d9b46a;
  --gold2: #f3d690;
  --text: #f1e4c8;
  --muted: #b3a185;
  --dim: #8a7a62;
  --red: #b52a1c;
  --red2: #dc4a2c;
  --ok: #6fbf73;
  --err: #e2664f;
  --radius: 10px;
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden; }
main { flex: 1; }
a { color: var(--gold2); text-decoration: none; }
a:hover { color: #fff3cf; }
img { max-width: 100%; }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--gold2); letter-spacing: .01em; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; background: var(--gold); color: #000; padding: 6px 10px; }
.skip:focus { left: 8px; }
.eyebrow { font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.eyebrow a { color: inherit; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; color: var(--gold2); font: inherit; cursor: pointer; padding: 0; }
button.link:hover { color: #fff; }
.link.danger, .danger { color: var(--err) !important; }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 8px; border: 1px solid var(--line2);
  font: 600 15px/1.2 var(--sans); cursor: pointer; color: var(--text); background: rgba(255,255,255,.03); transition: .18s; text-decoration: none; font-style: normal; }
.btn:hover { border-color: var(--gold); color: #fff; background: rgba(217,180,106,.08); }
.btn-red { background: linear-gradient(180deg, var(--red2), var(--red)); border-color: #e9774f; color: #fff6e6; box-shadow: 0 6px 22px rgba(181,42,28,.35), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-red:hover { background: linear-gradient(180deg, #ee5a36, #c4321f); color: #fff; }
.btn-ghost { background: rgba(12,8,6,.55); backdrop-filter: blur(4px); }
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { width: 100%; }
.btn.disabled { opacity: .45; cursor: default; pointer-events: none; }
.btn svg { width: 18px; height: 18px; }

/* đầu trang: nền tối, đường vàng trên, chữ Playfair đậm ngăn bằng vạch, nút viền vàng */
.top { position: sticky; top: 0; z-index: 50; background: linear-gradient(180deg, rgba(20,12,8,.97), rgba(12,8,6,.93)); border-bottom: 1px solid rgba(207,157,69,.4); box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.top::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, #b9852f 12%, #f2d184 50%, #b9852f 88%, transparent); }
.top-in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #f2d184; font: 700 18.4px var(--serif); letter-spacing: .02em; white-space: nowrap; }
.brand img { height: 38px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.menu { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.menu > a { position: relative; white-space: nowrap; padding: 0 2px; color: #e6d3ac; font: 700 16px/1.6 var(--serif); letter-spacing: .045em; transition: color .15s, text-shadow .15s; }
.menu > a + a:not(.nbtn)::before { content: ""; display: inline-block; width: 1px; height: 14px; margin-right: 12px; vertical-align: -2px; background: rgba(207,157,69,.45); }
.menu > a:hover, .menu > a.on { color: #f2d184; text-shadow: 0 0 12px rgba(224,122,53,.55); }
.menu > a.on::after { content: ""; position: absolute; left: 50%; bottom: -19px; width: 26px; height: 2px; margin-left: -9px; background: linear-gradient(90deg, transparent, #f2d184, transparent); }
.menu-fb { display: inline-flex; align-items: center; gap: 6px; color: #cf9d45 !important; }
.menu-fb::before { margin-right: 6px !important; }
.menu-fb svg { width: 15px; height: 15px; flex: none; }
.menu-zalo { color: #8db8ff !important; }
.menu-zalo:hover { color: #c4dcff !important; text-shadow: 0 0 12px rgba(80,150,255,.5) !important; }
.menu-zalo svg { fill: none; }
.menu .inline { display: flex; align-items: center; }
/* nút viền vàng (Đăng xuất) và nút đỏ viền vàng (Tạo tài khoản) */
.nbtn { --cut: 7px; clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; height: 38px; padding: 0 18px; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  font: 700 15.2px var(--serif); letter-spacing: .02em; text-transform: uppercase; color: #f2d184; background: linear-gradient(180deg, #f2d184, #8a5f22); }
.nbtn::after { content: ""; position: absolute; inset: 1px; z-index: -1; clip-path: inherit; background: #140c09; transition: background .15s; }
.nbtn:hover { color: #fff3cf; }
.nbtn:hover::after { background: #22140c; }
.nbtn--red::after { background: radial-gradient(120% 100% at 50% 0, #d94128 0%, #a82519 50%, #6d150f 100%); }
.nbtn--red::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgba(255,236,190,.35) 50%, transparent 65%); transform: translateX(-130%); animation: nbtnSweep 8s ease-in-out infinite; }
@keyframes nbtnSweep { 0%, 70% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.nbtn:hover { filter: brightness(1.12); }
.nbtn--red { color: #fff3cf !important; margin-left: 4px; }

.menu-close, .menu-scrim { display: none; }
.burger { display: none; margin-left: auto; width: 44px; height: 40px; border-radius: 3px; border: 1px solid rgba(207,157,69,.55); background: linear-gradient(180deg, #3a1d10, #1a0d08); cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 2px; background: #f2d184; border-radius: 2px; }

.flash { margin: 16px 0; padding: 12px 16px; border-radius: 8px; border: 1px solid; font-weight: 500; }
.flash-ok { border-color: rgba(111,191,115,.5); background: rgba(111,191,115,.1); color: #cdeccc; }
.flash-err { border-color: rgba(226,102,79,.5); background: rgba(226,102,79,.1); color: #ffd3c8; }
.flash-err div + div { margin-top: 4px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 0; isolation: isolate; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,8,6,.15) 0%, rgba(12,8,6,.55) 60%, var(--bg) 100%),
    var(--hero, none) center / cover no-repeat,
    radial-gradient(ellipse 70% 60% at 50% 115%, rgba(230,96,32,.75), transparent 70%),
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(120,62,24,.55), transparent 70%),
    linear-gradient(180deg, #2a160c, #120a06 70%); }
.ray { position: absolute; left: 50%; top: -30%; width: 140%; height: 160%; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 60%, rgba(255,210,140,.05) 0deg 6deg, transparent 6deg 14deg);
  mask: radial-gradient(circle at 50% 60%, #000 10%, transparent 60%); -webkit-mask: radial-gradient(circle at 50% 60%, #000 10%, transparent 60%); animation: spin 120s linear infinite; }
@keyframes spin { to { transform: translateX(-50%) rotate(360deg); } }
.ember { position: absolute; bottom: -20px; width: 6px; height: 6px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 12px 4px rgba(255,140,40,.6); animation: rise 9s linear infinite; opacity: 0; }
.e1 { left: 22%; } .e2 { left: 64%; animation-delay: 3s; } .e3 { left: 82%; animation-delay: 6s; width: 4px; height: 4px; }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-520px) translateX(40px); opacity: 0; } }
.hero-in { text-align: center; padding-bottom: 56px; }
.hero-logo { width: min(360px, 70vw); height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,.7)); margin-bottom: 8px; }
.hero-title { font-size: clamp(36px, 6vw, 68px); margin: 0 0 14px; background: linear-gradient(180deg, #fff1c8, #e0b25e 60%, #a8742c); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; }
.hero-text { max-width: 640px; margin: 0 auto 28px; color: #e8d7b5; font-size: 17px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
/* dải số liệu đầu trang chủ */
.stats { position: relative; z-index: 2; width: min(100% - 32px, 1400px); margin: 0 auto 22px; display: grid; grid-template-columns: 1fr 1fr 1.3fr;
  border: 1px solid rgba(207,157,69,.45); background: linear-gradient(180deg, rgba(28,16,10,.88), rgba(12,8,6,.92));
  box-shadow: inset 0 1px 0 rgba(255,220,150,.12), 0 20px 40px -20px rgba(0,0,0,.8); }
.stats::before, .stats::after { content: ""; position: absolute; top: -1px; width: 26px; height: 26px; border-top: 2px solid #e0b45c; }
.stats::before { left: -1px; border-left: 2px solid #e0b45c; }
.stats::after { right: -1px; border-right: 2px solid #e0b45c; }
.stat { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 11px; min-width: 0; padding: 16px 22px; text-align: center; }
.stat + .stat { border-left: 1px solid rgba(207,157,69,.25); }
.stat-k { flex-basis: 100%; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: #d9a94f; }
.stat-num { font: 700 24px var(--serif); color: #f2d184; font-variant-numeric: tabular-nums; }
.stat-s { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9b893; font-size: 14px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; color: #7fdc8a; font-size: 14.5px; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(127,220,138,.18), 0 0 10px currentColor; animation: livePulse 2s ease-in-out infinite; }
.live--off { color: #e0b45c; }
@keyframes livePulse { 50% { box-shadow: 0 0 0 5px rgba(127,220,138,.05), 0 0 4px currentColor; } }
.stat-plat { flex-basis: 100%; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 4px 0 0; padding: 0; list-style: none; }
.stat-plat a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 13px; border: 1px solid rgba(207,157,69,.45); color: #f1e4c8; font-size: 14.4px; transition: border-color .2s, background-color .2s, color .2s; }
.stat-plat a:hover { border-color: #e0b45c; color: #f2d184; background: rgba(207,157,69,.12); }
.stat-plat .picon { width: 15px; height: 15px; color: #f2d184; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips > * { padding: 4px 12px; border: 1px solid var(--line2); border-radius: 6px; font-size: 13px; color: var(--text); background: rgba(255,255,255,.03); }
.chips a:hover { border-color: var(--gold); }

/* khối */
.sec { padding: 72px 0; }
.sec-dark { background: linear-gradient(180deg, var(--bg2), var(--bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 6px; }
.sec-head p { color: var(--muted); margin: 0; }
.sec-head.center h2::after { content: ""; display: block; width: 80px; height: 2px; margin: 14px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.panel { background: linear-gradient(180deg, var(--panel2), var(--panel)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.empty { color: var(--dim); padding: 24px; text-align: center; margin: 0; }

.tabs { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.tab { background: none; border: 0; padding: 12px 14px; color: var(--muted); font: 600 14px var(--sans); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tab:hover { color: var(--text); }
.tab.on { color: var(--gold2); border-bottom-color: var(--gold); }
.tab-more { margin-left: auto; font-size: 14px; }
.tab-pane { display: none; } .tab-pane.on { display: block; }
.news-rows, .list-rows { list-style: none; margin: 0; padding: 0; }
.row-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tag { display: inline-block; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 4px; margin-right: 8px; vertical-align: 1px; border: 1px solid; text-transform: uppercase; white-space: nowrap; }
.tag-tin-tuc { color: #f0c873; border-color: rgba(240,200,115,.4); background: rgba(240,200,115,.08); }
.tag-su-kien { color: #ff8a65; border-color: rgba(255,138,101,.45); background: rgba(255,138,101,.08); }
.tag-huong-dan { color: #8fd1a8; border-color: rgba(143,209,168,.4); background: rgba(143,209,168,.07); }
.tag-pin { color: #fff; background: var(--red); border-color: var(--red2); }
.tag-draft { color: #ccc; border-color: #666; background: #333; }

/* trang con */
.page-head { padding: 54px 0 30px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse 60% 120% at 80% 0%, rgba(150,60,20,.35), transparent 70%), linear-gradient(180deg, #1b0f08, var(--bg)); }
.page-head h1 { font-size: clamp(28px, 4.5vw, 44px); margin: 0; }
.page-head .meta { color: var(--muted); margin: 12px 0 0; font-size: 14px; }
.page-head .lead { color: var(--muted); margin: 12px 0 0; max-width: 720px; }
.page-body { padding-top: 28px; padding-bottom: 72px; }
.list-panel { padding: 6px 20px 20px; }
.list-rows a { display: flex; align-items: center; gap: 10px; padding: 13px 4px; border-bottom: 1px solid var(--line); color: var(--text); }
.list-rows a:hover { color: var(--gold2); }
.list-rows .tag { width: 92px; text-align: center; flex: none; }
.list-rows time { flex: none; color: var(--dim); font-size: 13px; }
.search { margin-left: auto; }
.search input { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; color: var(--text); font: inherit; font-size: 14px; width: 200px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 20px; flex-wrap: wrap; }
.pager a { min-width: 36px; padding: 6px 10px; text-align: center; border: 1px solid var(--line); border-radius: 6px; color: var(--text); }
.pager a.on { border-color: var(--gold); color: var(--gold2); background: rgba(217,180,106,.08); }

.article-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.article { padding: 32px clamp(18px, 4vw, 44px); }
.article-cover { display: block; width: 100%; border-radius: 8px; margin-bottom: 24px; border: 1px solid var(--line); }
.prose { font-size: 16px; line-height: 1.75; overflow-wrap: anywhere; }
.prose h2 { font-size: 26px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 21px; margin: 1.3em 0 .4em; }
.prose p { margin: 0 0 1em; }
.prose img { height: auto; border-radius: 6px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin: 1em 0; padding: 10px 18px; border-left: 3px solid var(--gold); background: rgba(217,180,106,.06); color: #e7d6b4; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line2); padding: 8px 10px; text-align: left; }
.prose th { background: rgba(217,180,106,.08); color: var(--gold2); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 6px; }
.prose a { text-decoration: none; }
.side { padding: 20px; position: sticky; top: 84px; }
.side h3 { font-size: 18px; }
.side ul { list-style: none; margin: 0 0 16px; padding: 0; }
.side li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.side li a { display: block; color: var(--text); font-size: 14px; }
.side li a:hover { color: var(--gold2); }
.side time { font-size: 12px; color: var(--dim); }

/* tải game */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dl-card { position: relative; padding: 26px 22px; display: flex; flex-direction: column; scroll-margin-top: 90px; }
.dl-card:target { border-color: var(--gold); }
.dl-card h2 { font-size: 26px; margin-bottom: 2px; }
.dl-card .sub { color: var(--gold); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 14px; }
.ribbon { position: absolute; top: 14px; right: 14px; background: var(--red); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.ticks { list-style: none; padding: 0; margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.ticks li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: 12px; top: 2px; }
.dl-btns { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.dl-note { color: var(--dim); font-size: 12px; margin: -4px 0 4px; text-align: center; }
.extra { padding: 20px 22px; margin-top: 20px; }
.extra h2 { font-size: 22px; }
.extra-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.extra-row small { display: block; color: var(--muted); }
.notes { margin-top: 56px; }
.notes h2 { font-size: 30px; margin-bottom: 22px; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.note { padding: 22px; }
.note small { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.note h3 { font-size: 20px; margin-top: 6px; }
.note p { color: var(--muted); margin: 0; font-size: 14px; }
.mini { margin: 0; padding-left: 18px; font-size: 14px; }

/* form */
.auth { padding: 56px 16px 80px; display: flex; justify-content: center;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(150,60,20,.4), transparent 70%); }
.auth-box { width: 100%; max-width: 440px; padding: 30px 28px; }
.auth-box h1 { font-size: 32px; }
.auth-box.center p { color: var(--muted); }
label { display: block; margin-bottom: 16px; font-weight: 600; font-size: 14px; color: #e9d9b8; }
label small { display: block; font-weight: 400; color: var(--dim); font-size: 12px; margin-top: 5px; }
input, select, textarea { display: block; width: 100%; margin-top: 6px; padding: 11px 13px; border-radius: 7px; border: 1px solid var(--line2); background: rgba(0,0,0,.4); color: var(--text); font: 15px var(--sans); outline: none; transition: .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(217,180,106,.15); }
input[type=checkbox] { display: inline-block; width: auto; margin: 0 6px 0 0; accent-color: var(--gold); }
select option { background: #1b120c; }
.auth-alt { text-align: center; color: var(--muted); font-size: 14px; margin: 16px 0 0; }
.more { margin: 0 0 16px; border: 1px dashed var(--line2); border-radius: 7px; padding: 10px 14px; }
.more summary { cursor: pointer; color: var(--gold2); font-size: 14px; font-weight: 600; }
.more[open] summary { margin-bottom: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.acc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.acc-grid > .panel { padding: 22px 24px; }
.acc-grid h2 { font-size: 22px; }
.acc-info { grid-row: span 2; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 0 0 20px; }
dt { color: var(--muted); } dd { margin: 0; font-weight: 600; }
.chars { list-style: none; padding: 0; margin: 0; }
.chars li { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.chars span { color: var(--muted); }
.chars li { gap: 10px; align-items: baseline; }
.chars li b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chars .chars__srv { font-size: 12px; color: var(--gold, #d8b26a); white-space: nowrap; }

/* chân trang */
.foot { border-top: 1px solid var(--line); background: #080504; padding: 40px 0 100px; }
.foot-in { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.foot-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; }
.foot-nav a { color: var(--muted); }
.foot-warn { color: #ef8b6b; font-size: 13px; margin: 0; }
.foot-copy { color: var(--dim); font-size: 13px; margin: 0; }

/* thanh lối tắt (điện thoại) */

@media (max-width: 960px) {
  .article-wrap { grid-template-columns: 1fr; }
  .side { position: static; }
  .dl-grid, .note-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .acc-grid { grid-template-columns: 1fr; }
  .acc-info { grid-row: auto; }
}
/* màn vừa: thu gọn chữ menu để đủ chỗ cho Fanpage + Zalo + các mục tài khoản */
@media (min-width: 1181px) and (max-width: 1500px) {
  .menu { gap: 9px; }
  .menu > a { font-size: 14.5px; letter-spacing: .02em; }
  .menu > a + a:not(.nbtn)::before { margin-right: 9px; }
  .nbtn { padding: 0 13px; font-size: 13.5px; }
  .brand { font-size: 17px; } .brand img { height: 34px; }
}
@media (max-width: 1180px) {
  .burger { display: flex; }
  /* điện thoại: menu là ngăn kéo bên phải */
  .menu { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(320px, 86vw); margin: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 64px 22px 24px; overflow-y: auto;
    background: linear-gradient(180deg, #2a140b, #140b07 60%); border-left: 1px solid rgba(207,157,69,.45); box-shadow: -18px 0 40px rgba(0,0,0,.6); transform: translateX(105%); transition: transform .25s ease; visibility: hidden; }
  .menu.open { transform: none; visibility: visible; }
  .menu > a { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid rgba(207,157,69,.18); }
  .menu > a + a:not(.nbtn)::before { display: none; }
  .menu > a.on::after { left: 0; bottom: -1px; width: 40px; margin: 0; }
  .menu .inline { margin-top: 18px; }
  .menu .inline .nbtn, .menu > a.nbtn { width: 100%; margin: 18px 0 0; }
  .menu .inline .nbtn { margin-top: 0; }
  .menu-close { display: block; position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 1px solid rgba(207,157,69,.45); border-radius: 3px; background: rgba(0,0,0,.3); color: #f2d184; font-size: 26px; line-height: 1; cursor: pointer; }
  .menu-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.55); opacity: 0; pointer-events: none; transition: opacity .25s; display: block; }
  body.menu-open .menu-scrim { opacity: 1; pointer-events: auto; }
  body.menu-open { overflow: hidden; }
  body.menu-open .dock { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .top-in { height: 58px; }
  .brand { font-size: 17px; } .brand img { height: 34px; }
  .hero { padding-top: 40px; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(207,157,69,.25); }
  .stat { padding: 12px; }
  .sec { padding: 48px 0; }
  .tab-more { display: none; }
  .search { margin: 8px 0; width: 100%; } .search input { width: 100%; }
  .list-rows a { flex-wrap: wrap; }
  .list-rows .row-title { flex-basis: 100%; order: 3; white-space: normal; }
  .list-rows time { margin-left: auto; }
  .row-title { white-space: normal; }
  .auth-box { padding: 24px 18px; }
  .feat-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---- thẻ chung trang con ---- */
.card { padding: 22px 24px; }
.card h2 { font-size: 22px; margin-bottom: 12px; }
.card .eyebrow { font-size: 11px; margin-bottom: 4px; }
.small { font-size: 13px; }
.warn { color: #ff9b7a !important; }
.gold { color: var(--gold2); }
b.big { font-size: 20px; letter-spacing: .04em; }
.note-box { padding: 12px 14px; border-radius: 8px; border: 1px dashed var(--line2); background: rgba(217,180,106,.05); color: #e7d6b4; font-size: 14px; margin: 0 0 14px; }
.subtabs { display: flex; gap: 6px; margin-top: 18px; flex-wrap: wrap; }
.subtabs a { padding: 8px 16px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; font-weight: 600; background: rgba(0,0,0,.25); }
.subtabs a.on { color: #1a0f08; background: linear-gradient(180deg, var(--gold2), var(--gold)); border-color: var(--gold); }
.acc-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.acc-cols dl { grid-template-columns: auto 1fr; gap: 9px 16px; font-size: 14px; margin-bottom: 14px; }
.acc-cols dt { color: var(--muted); font-weight: 400; }
.acc-cols dd { text-align: right; overflow-wrap: anywhere; }
.balance { font: 800 42px/1 var(--serif); color: var(--gold2); margin: 6px 0 4px; }
.card .btn-block { margin-top: 14px; }
.mini-tbl { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 14px; }
.mini-tbl th { text-align: left; color: var(--gold); font-weight: 600; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 6px; border-bottom: 1px solid var(--line2); }
.mini-tbl td { padding: 9px 6px; border-bottom: 1px solid var(--line); }
.mini-tbl .num { text-align: right; white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }
.form label { margin-bottom: 14px; }
.form .btn { margin-top: 2px; }

/* ---- nạp ---- */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.kpis-4 { grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 16px 20px; display: flex; flex-direction: column; gap: 3px; color: var(--text); }
a.kpi:hover { border-color: var(--gold); color: var(--text); }
.kpi small { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.kpi b { font: 700 26px var(--serif); color: var(--gold2); }
.kpi span, .kpi a { font-size: 13px; color: var(--muted); }
.kpi a { color: var(--gold2); }
.methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 20px; }
.method { padding: 14px 18px; text-align: left; color: var(--text); font: inherit; display: flex; flex-direction: column; gap: 2px; cursor: default; }
.method b { font-size: 16px; }
.method span { color: var(--muted); font-size: 13px; }
.method.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold), 0 10px 30px rgba(0,0,0,.35); }
.method.off { opacity: .5; }
.topup-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.side-col { display: flex; flex-direction: column; gap: 20px; }
.lbl { display: block; font-weight: 600; font-size: 14px; color: #e9d9b8; margin-bottom: 8px; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.quick button { padding: 10px 4px; border-radius: 7px; border: 1px solid var(--line2); background: rgba(0,0,0,.35); color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.quick button:hover { border-color: var(--gold); }
.quick button.on { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a0f08; border-color: var(--gold); }
.receive { display: flex; flex-direction: column; align-items: center; padding: 16px; border-radius: 8px; border: 1px solid var(--line2); background: rgba(217,180,106,.06); margin-bottom: 16px; }
.receive small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
.receive b { font: 800 34px var(--serif); color: var(--gold2); }
.receive span { color: var(--muted); font-size: 13px; }
.rate-tbl td small { color: var(--dim); font-weight: 400; }
.steps { margin: 0; padding-left: 20px; color: var(--muted); font-size: 14px; }
.steps li { margin-bottom: 8px; }
.st { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 4px; border: 1px solid; white-space: nowrap; }
.st-0 { color: #f0c873; border-color: rgba(240,200,115,.4); }
.st-1 { color: #8fd1a8; border-color: rgba(143,209,168,.4); }
.st-2, .st-x { color: #999; border-color: #555; }
.order-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.qr { width: 260px; height: 260px; margin: 8px auto; padding: 12px; background: #fff; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.qr svg, .qr img { width: 100%; height: 100%; }
.wait { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--gold2); font-size: 14px; margin: 12px 0 0; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line2); border-top-color: var(--gold); animation: spin2 1s linear infinite; }
@keyframes spin2 { to { transform: rotate(360deg); } }
.pay { grid-template-columns: auto 1fr !important; gap: 12px 18px !important; font-size: 15px; }
.pay dd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.copy { background: none; border: 1px solid var(--line2); color: var(--gold2); border-radius: 5px; padding: 2px 8px; font: 12px var(--sans); cursor: pointer; }
.copy:hover { border-color: var(--gold); }
.done h2 { font-size: 30px; }
.toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%); z-index: 99; background: #2a1c10; border: 1px solid var(--gold); color: var(--gold2); padding: 10px 16px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

@media (max-width: 960px) {
  .acc-cols, .topup-grid, .order-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis, .kpis-4, .methods { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .kpis, .kpis-4, .methods { grid-template-columns: 1fr; }
  .quick { grid-template-columns: repeat(3, 1fr); }
  .balance { font-size: 34px; }
}

/* chọn nhà mạng / mệnh giá / ví (ô radio dạng nút) */
.pick { margin: 0 !important; cursor: pointer; }
.pick input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pick span { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 42px; padding: 8px 4px; border-radius: 7px; border: 1px solid var(--line2); background: rgba(0,0,0,.35); color: var(--text); font: 600 14px var(--sans); text-align: center; line-height: 1.2; }
.pick span small { display: block; font-size: 11px; font-weight: 500; color: var(--dim); margin-top: 2px; }
.pick:hover span { border-color: var(--gold); }
.pick input:checked + span { background: linear-gradient(180deg, var(--gold2), var(--gold)); color: #1a0f08; border-color: var(--gold); }
.pick input:checked + span small { color: #4a3010; }
.pick input:focus-visible + span { outline: 2px solid var(--gold2); outline-offset: 2px; }
.telcos { grid-template-columns: repeat(3, 1fr); }
a.method { text-decoration: none; cursor: pointer; }
a.method.off { cursor: pointer; }
a.method:hover { border-color: var(--gold); }

@media (max-width: 640px) { .telcos { grid-template-columns: repeat(2, 1fr); } .card { padding: 18px 16px; } .order-grid .qr { width: 220px; height: 220px; } }

/* nền trang Nạp KNB / Tài khoản: vân nhiễu + lớp tối 0.55→0.85 (340px)→đặc (760px)
   phủ ảnh game rộng hết trang ở trên cùng + quầng đỏ; dải tiêu đề trong suốt nằm thẳng trên ảnh */
body.pg-bg { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.8 0 0 0 0 0.6 0 0 0 0 0.3 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(180deg, rgba(12,8,6,.55) 0, rgba(12,8,6,.85) 340px, #0c0806 760px), var(--pgbg, none) center 64px / 100% auto no-repeat,
    radial-gradient(60% 30% at 85% 40%, rgba(125,25,18,.16), transparent 70%), #0c0806; }
body.pg-bg .page-head { background: none; border-bottom: 0; padding-bottom: 18px; }
body.pg-bg .page-head h1 { color: #f6d98f; text-shadow: 0 2px 0 rgba(60,22,6,.95), 0 0 24px rgba(255,160,60,.18); }
body.pg-bg .page-head .lead, body.pg-bg .page-head .meta { color: #e2d3b2; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
@media (max-width: 640px) { body.pg-bg { background-size: auto, auto, 200% auto, auto, auto; } }

/* khối lối tắt nổi bên phải */
.dock { position: fixed; top: 50%; right: 14px; z-index: 45; transform: translateY(-50%); }
.dock__panel { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid rgba(207,157,69,.55); border-radius: 6px;
  background: linear-gradient(180deg, rgba(26,22,16,.97), rgba(11,8,5,.97)); box-shadow: inset 0 0 0 1px rgba(217,174,85,.1), 0 14px 40px rgba(0,0,0,.6); }
.dock__head { display: none; margin: 0 0 2px; padding-bottom: 6px; border-bottom: 1px solid rgba(207,157,69,.2); text-align: center; }
.dock__head img { width: 100%; max-width: 122px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.dock__item { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid transparent; border-radius: 4px; color: #c9b893; font-size: 13.6px; transition: color .15s, background .15s, border-color .15s, filter .15s; }
.dock__item span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.dock__item:hover, .dock__item.on { color: #f2d184; background: rgba(217,174,85,.08); border-color: rgba(169,127,44,.5); }
.dock__icon { width: 19px; height: 19px; flex: none; }
.dock__item--fb { color: #ffe9b0; text-shadow: 0 1px 0 #6b1a06; border-color: #7a4a12; animation: dockGlow 2.8s ease-in-out infinite;
  background: linear-gradient(180deg, rgba(255,214,120,.2), transparent 45%), radial-gradient(130% 100% at 50% 120%, #ff9a2e 0%, #c0470f 40%, #7d1f0c 72%, #4a1207 100%); }
.dock__item--fb:hover { color: #fff3d0; border-color: #d9a94f; filter: brightness(1.1); background: linear-gradient(180deg, rgba(255,214,120,.2), transparent 45%), radial-gradient(130% 100% at 50% 120%, #ff9a2e 0%, #c0470f 40%, #7d1f0c 72%, #4a1207 100%); }
.dock__item--gold { color: #ffeec2; text-shadow: 0 1px 0 #4a3208; border-color: #7a5a12;
  background: linear-gradient(180deg, rgba(255,226,150,.18), transparent 45%), radial-gradient(130% 100% at 50% 120%, #d9ae55 0%, #a97f2c 45%, #5b3f12 100%); }
.dock__item--gold:hover { color: #fff6dd; border-color: #f2d184; filter: brightness(1.1); background: linear-gradient(180deg, rgba(255,226,150,.18), transparent 45%), radial-gradient(130% 100% at 50% 120%, #d9ae55 0%, #a97f2c 45%, #5b3f12 100%); }
@keyframes dockGlow { 0%, 100% { box-shadow: inset 0 0 0 1px rgba(240,207,135,.35), 0 0 12px rgba(255,150,50,.28); } 50% { box-shadow: inset 0 0 0 1px rgba(240,207,135,.55), 0 0 26px rgba(255,170,70,.55); } }
.dock__collapse { margin-top: 2px; padding: 6px 0 2px; border: 0; border-top: 1px solid rgba(207,157,69,.2); background: none; color: #94805f; cursor: pointer; font-size: 0; letter-spacing: .16em; text-transform: uppercase; }
.dock__collapse::before { content: "▽"; font-size: 12.8px; }
.dock__collapse:hover { color: #d9a94f; }
.dock__seal { display: none; place-content: center; width: 58px; height: 58px; border: 2px solid #b9852f; border-radius: 4px; cursor: pointer;
  background: linear-gradient(180deg, #a83218 0%, #7d1f0c 100%); color: #ffe6c4; font: 700 13px/1.05 var(--serif); text-align: center;
  box-shadow: inset 0 0 0 1px rgba(240,207,135,.35), 0 8px 22px rgba(0,0,0,.55); transition: filter .15s, transform .15s; }
.dock__seal span { display: block; }
.dock__seal:hover { filter: brightness(1.12); transform: scale(1.04); }
.dock.is-mini .dock__panel { display: none; }
.dock.is-mini .dock__seal { display: grid; }
@media (prefers-reduced-motion: reduce) { .dock__item--fb { animation: none; } }
@media (min-width: 1480px) {
  .dock__panel { width: 158px; gap: 5px; padding: 9px; }
  .dock__head { display: block; }
  .dock__item { padding: 8px 9px; }
  .dock__item span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .dock__collapse { font-size: 10.2px; }
  .dock__collapse::before { content: "▽ "; }
}
@media (max-width: 820px) {
  .dock { top: auto; bottom: 14px; right: 10px; transform: none; }
  .dock__seal { width: 46px; height: 46px; font-size: 10.5px; }
}
/* điện thoại: thanh dưới đáy */
@media (max-width: 767px) {
  .dock { left: 0; right: 0; bottom: 0; top: auto; transform: none; z-index: 60; }
  .dock__panel, .dock.is-mini .dock__panel { display: flex; flex-direction: row; justify-content: space-around; gap: 0; width: 100%; padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    border: 0; border-top: 1px solid rgba(207,157,69,.45); border-radius: 0; background: linear-gradient(180deg, rgba(28,18,12,.97), rgba(12,8,6,.98)); box-shadow: 0 -8px 24px rgba(0,0,0,.5); }
  .dock__head, .dock__collapse, .dock__seal, .dock.is-mini .dock__seal { display: none; }
  .dock__item { flex: 1 1 0; flex-direction: column; justify-content: center; gap: 2px; min-height: 50px; padding: 4px 2px; border-radius: 0; }
  .dock__item span { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 11.2px; }
  body.menu-open .dock { display: none; }
  body { padding-bottom: 60px; }
}

/* khung từng mục (trang Tài khoản, Nạp KNB…): viền vàng mờ + 4 góc trang trí, tiêu đề có gạch dưới,
   rê chuột thì viền sáng lên */
.card, body.admin .panel { border: 1px solid rgba(207,157,69,.3); border-radius: 0; transition: border-color .2s, box-shadow .2s;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg%3E%3Cpath d='M2 42 V10 A8 8 0 0 1 10 2 H42' stroke='%23cf9d45' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M11 46 V16 A5 5 0 0 1 16 11 H46' stroke='%23cf9d45' stroke-width='1.4' opacity='.65' stroke-linecap='round' fill='none'/%3E%3Cpath d='M20 62 C20 48 30 40 43 40 C52 40 58 45 58 52 C58 58 54 62 48 62 C43 62 40 59 40 55 C40 52 42 50 45 50' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M62 20 C48 20 40 30 40 43' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='.9'/%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%23cf9d45'/%3E%3C/g%3E%3C/svg%3E") 6px 6px / 26px auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg transform='matrix(-1 0 0 1 120 0)'%3E%3Cpath d='M2 42 V10 A8 8 0 0 1 10 2 H42' stroke='%23cf9d45' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M11 46 V16 A5 5 0 0 1 16 11 H46' stroke='%23cf9d45' stroke-width='1.4' opacity='.65' stroke-linecap='round' fill='none'/%3E%3Cpath d='M20 62 C20 48 30 40 43 40 C52 40 58 45 58 52 C58 58 54 62 48 62 C43 62 40 59 40 55 C40 52 42 50 45 50' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M62 20 C48 20 40 30 40 43' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='.9'/%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%23cf9d45'/%3E%3C/g%3E%3C/svg%3E") calc(100% - 6px) 6px / 26px auto no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg transform='matrix(1 0 0 -1 0 120)'%3E%3Cpath d='M2 42 V10 A8 8 0 0 1 10 2 H42' stroke='%23cf9d45' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M11 46 V16 A5 5 0 0 1 16 11 H46' stroke='%23cf9d45' stroke-width='1.4' opacity='.65' stroke-linecap='round' fill='none'/%3E%3Cpath d='M20 62 C20 48 30 40 43 40 C52 40 58 45 58 52 C58 58 54 62 48 62 C43 62 40 59 40 55 C40 52 42 50 45 50' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M62 20 C48 20 40 30 40 43' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='.9'/%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%23cf9d45'/%3E%3C/g%3E%3C/svg%3E") 6px calc(100% - 6px) / 26px auto no-repeat, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Cg transform='matrix(-1 0 0 -1 120 120)'%3E%3Cpath d='M2 42 V10 A8 8 0 0 1 10 2 H42' stroke='%23cf9d45' stroke-width='3' stroke-linecap='round' fill='none'/%3E%3Cpath d='M11 46 V16 A5 5 0 0 1 16 11 H46' stroke='%23cf9d45' stroke-width='1.4' opacity='.65' stroke-linecap='round' fill='none'/%3E%3Cpath d='M20 62 C20 48 30 40 43 40 C52 40 58 45 58 52 C58 58 54 62 48 62 C43 62 40 59 40 55 C40 52 42 50 45 50' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none'/%3E%3Cpath d='M62 20 C48 20 40 30 40 43' stroke='%23cf9d45' stroke-width='2.4' stroke-linecap='round' fill='none' opacity='.9'/%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%23cf9d45'/%3E%3C/g%3E%3C/svg%3E") calc(100% - 6px) calc(100% - 6px) / 26px auto no-repeat,
    radial-gradient(120% 70% at 50% 0, rgba(207,157,69,.08), transparent 65%), linear-gradient(180deg, rgba(40,16,10,.82), rgba(18,8,5,.88));
  box-shadow: inset 0 1px 0 rgba(255,220,150,.08), 0 18px 40px -22px rgba(0,0,0,.9); }
.card:hover, body.admin .panel:hover { border-color: #f2d184; box-shadow: inset 0 0 0 1px rgba(242,209,132,.4), 0 18px 40px -22px rgba(0,0,0,.9), 0 0 32px rgba(242,160,70,.28); }
.card > h2, body.admin .panel > h2 { padding-bottom: 12px; margin-bottom: 16px; border-bottom: 1px solid rgba(207,157,69,.2); color: #f2d184; }
.card .eyebrow { color: #d9a94f; }
/* tab trên trang Tài khoản */
.subtabs a { border-radius: 999px; border: 1px solid transparent; background: none; color: #c9b893; font-weight: 500; padding: 6px 14px; transition: color .15s, background .15s, border-color .15s; }
.subtabs a:hover { color: #f2d184; background: rgba(217,174,85,.08); }
.subtabs a.on { color: #f2d184; background: rgba(217,174,85,.12); border-color: rgba(217,174,85,.4); }

/* trang Nạp KNB / Tài khoản — khung + nút: góc vuông, viền vàng, nút đỏ vát góc viền vàng */
.method-ico { display: none; }
body.pg-bg .kpi { border-radius: 0; border: 1px solid rgba(207,157,69,.22); background: linear-gradient(180deg, #1b120d, #130c09); box-shadow: none; transition: border-color .2s; }
body.pg-bg .kpi:hover { border-color: rgba(242,209,132,.5); }
body.pg-bg .kpi small { color: #c9b893; letter-spacing: .08em; font-weight: 500; }
body.pg-bg .kpi b { color: #f2d184; }
body.pg-bg .method { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 62px; padding: 11px 16px; border-radius: 0; border: 1px solid rgba(207,157,69,.42);
  background: linear-gradient(180deg, #2a1f12, #130c09); box-shadow: none; transition: border-color .15s, background .15s; }
body.pg-bg .method:hover { border-color: #a77a32; color: var(--text); }
body.pg-bg .method.on { border-color: #cf9d45; box-shadow: none; background: linear-gradient(180deg, #3b2b17, #130c09); }
body.pg-bg .method-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(207,157,69,.55); color: #f2d184; flex: none; }
body.pg-bg .method.on .method-ico { border-color: #cf9d45; background: rgba(207,157,69,.16); }
body.pg-bg .method-ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
body.pg-bg .method-t { display: flex; flex-direction: column; min-width: 0; }
body.pg-bg .method b { font-weight: 600; line-height: 1.25; }
body.pg-bg .method-t span { color: #c9b893; font-size: 12.8px; }
body.pg-bg .quick button, body.pg-bg .pick span { border-radius: 0; min-height: 46px; border: 1px solid rgba(207,157,69,.42); background: rgba(36,24,16,.7); color: var(--text); transition: border-color .15s, color .15s, background .15s; }
body.pg-bg .quick button:hover, body.pg-bg .pick:hover span { border-color: #a77a32; color: #f2d184; }
body.pg-bg .quick button.on, body.pg-bg .pick input:checked + span { border-color: #cf9d45; background: linear-gradient(180deg, #cf9d45, #a77a32); color: #201704; }
body.pg-bg .pick input:checked + span small { color: #4a3010; }
:is(body.pg-bg main, body.admin .adm-main) input:not([type=checkbox]):not([type=radio]):not([type=hidden]), :is(body.pg-bg main, body.admin .adm-main) select, :is(body.pg-bg main, body.admin .adm-main) textarea { border-radius: 0; background: rgba(12,8,6,.75); border-color: rgba(207,157,69,.4); }
:is(body.pg-bg main, body.admin .adm-main) input:focus, :is(body.pg-bg main, body.admin .adm-main) select:focus, :is(body.pg-bg main, body.admin .adm-main) textarea:focus { border-color: #d9a94f; box-shadow: 0 0 0 3px rgba(217,169,79,.22); }
body.pg-bg .receive { border-radius: 0; border: 1px solid #6e4c1c; background: rgba(207,157,69,.1); }
body.pg-bg .note-box { border-radius: 0; }
body.pg-bg .mini-tbl th { color: #d9a94f; }
/* nút trong nội dung: viền vàng chuyển sắc + lõi đỏ, vát góc */
:is(body.pg-bg main, body.admin .adm-main) .btn-red, :is(body.pg-bg main, body.admin .adm-main) .btn-ghost { --cut: 9px; position: relative; isolation: isolate; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  background: linear-gradient(180deg, #fff3cf, #cf9d45 50%, #8a5f22); color: #fff3cf; font-family: var(--serif); font-weight: 700; letter-spacing: .03em; transition: filter .15s, transform .15s; }
:is(body.pg-bg main, body.admin .adm-main) .btn-red::before, :is(body.pg-bg main, body.admin .adm-main) .btn-ghost::before { content: ""; position: absolute; inset: 1.5px; z-index: -1; clip-path: inherit; background: radial-gradient(120% 100% at 50% 0, #d94128 0%, #a82519 50%, #6d150f 100%); }
:is(body.pg-bg main, body.admin .adm-main) .btn-ghost { color: #f2d184; }
:is(body.pg-bg main, body.admin .adm-main) .btn-ghost::before { background: linear-gradient(180deg, #2a160c, #140c09); }
:is(body.pg-bg main, body.admin .adm-main) .btn-red:hover, :is(body.pg-bg main, body.admin .adm-main) .btn-ghost:hover { filter: brightness(1.1); color: #fff; background: linear-gradient(180deg, #fff3cf, #cf9d45 50%, #8a5f22); }
:is(body.pg-bg main, body.admin .adm-main) .btn-red:active, :is(body.pg-bg main, body.admin .adm-main) .btn-ghost:active { transform: translateY(1px); }
:is(body.pg-bg main, body.admin .adm-main) .btn-lg { min-height: 50px; font-size: 16.3px; }
/* các bước đánh số tròn đỏ viền vàng */
body.pg-bg .steps { list-style: none; counter-reset: napstep; padding: 0; display: grid; gap: 12px; color: var(--text); }
body.pg-bg .steps li { counter-increment: napstep; position: relative; min-height: 32px; margin: 0; padding: 3px 0 0 44px; line-height: 1.6; }
body.pg-bg .steps li::before { content: counter(napstep); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid #cf9d45; background: radial-gradient(circle at 50% 30%, #a82519, #5e1109); color: #fff3cf; font: 700 15px var(--serif); box-shadow: 0 0 0 3px rgba(12,8,6,.8); }
body.pg-bg .steps b, body.pg-bg .steps strong { color: #f2d184; }

/* dải số liệu, ô đăng nhập / đăng ký / báo lỗi: rê chuột viền sáng như các khung khác */
/* dải số liệu trang chủ: KHÔNG đổi viền khi rê chuột (người dùng 2026-11-21) */
.stat-plat a:hover { box-shadow: 0 0 12px rgba(224,122,53,.2); }
.auth-box.card { padding: 30px 28px; }
.dock__icon[fill="none"] { fill: none; }

/* nút Zalo ở khối lối tắt bên phải + chân trang */
.dock__item--zalo { color: #e6f0ff; text-shadow: 0 1px 0 #08306b; border-color: #1d4e9e;
  background: linear-gradient(180deg, rgba(160,200,255,.18), transparent 45%), radial-gradient(130% 100% at 50% 120%, #3d8bff 0%, #1662d6 45%, #0b3a86 100%); }
.dock__item--zalo:hover { color: #fff; border-color: #8fb8ff; filter: brightness(1.1); background: linear-gradient(180deg, rgba(160,200,255,.18), transparent 45%), radial-gradient(130% 100% at 50% 120%, #3d8bff 0%, #1662d6 45%, #0b3a86 100%); }
.foot-contact { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* số dư KNB nổi bật: trang Nạp KNB (.kpi--bal) + trang Tài khoản (.bal-card) */
body.pg-bg .kpi.kpi--bal {
  border-color: rgba(242,209,132,.6);
  background: radial-gradient(120% 90% at 50% 0%, rgba(242,190,90,.22), rgba(242,190,90,0) 60%), linear-gradient(180deg, #2a1a0f, #160d08);
  box-shadow: 0 0 0 1px rgba(242,209,132,.12) inset, 0 0 26px rgba(232,176,72,.18);
}
.bal-card, .bal-card:hover { border-color: rgba(242,209,132,.7); box-shadow: inset 0 70px 80px -50px rgba(242,180,80,.28), inset 0 0 0 1px rgba(242,209,132,.15), 0 0 30px rgba(232,176,72,.2); }
body.pg-bg .kpi.kpi--bal small, .bal-card .eyebrow { color: #f2d184; }
.kpi--bal b, .bal-card .balance {
  background: linear-gradient(180deg, #fff3c9 0%, #f2d184 45%, #c98d2c 100%); -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 2px 8px rgba(232,176,72,.35));
}
.kpi--bal b { font-size: 34px; line-height: 1.1; }
.bal-card .balance { font-size: 52px; margin: 10px 0 6px; }
.kpi--bal b em, .bal-card .balance em { font-style: normal; font-size: .45em; letter-spacing: .08em; }
@media (max-width: 767px) { .bal-card .balance { font-size: 40px; } .kpi--bal b { font-size: 30px; } }
/* nút Quản trị (chỉ quản trị viên) ở góc trái, trước logo; kiểu nút như Đăng xuất */
.nbtn--admin { flex: none; }
@media (max-width: 520px) { .nbtn--admin { padding: 0 10px; font-size: 12.5px; } .nbtn--admin ~ .brand span { display: none; } }
