/* Cửa Hàng web (29/11/2026): trang người chơi /cua-hang, /cua-hang/mua, /cua-hang/nap, /cua-hang/lich-su + bảng danh mục GM.
   CSP chặn style nội tuyến nên mọi kiểu nằm ở đây; theme tối vàng của site.css, khung kiểu shop bán hàng. */
.sh-hero { position: relative; overflow: hidden; isolation: isolate; padding: 44px 0 34px; border-bottom: 4px solid var(--yellow);
  background: radial-gradient(ellipse 45% 100% at 8% 0%, rgba(255,212,0,.22), transparent 70%), radial-gradient(ellipse 40% 90% at 92% 100%, rgba(232,32,42,.35), transparent 70%),
    linear-gradient(90deg, rgba(11,12,16,.97) 0%, rgba(11,12,16,.82) 45%, rgba(11,12,16,.55) 100%), url(/img/hero-team.webp) center 22% / cover; }
/* sọc chéo vàng mờ + hình Saitama bên phải mờ dần (trang trí) */
.sh-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(-60deg, transparent 0 22px, rgba(255,212,0,.07) 22px 26px); }
.sh-hero::after { content: ""; position: absolute; z-index: -1; pointer-events: none; right: 26%; top: -10%; width: 420px; height: 420px; opacity: .55;
  background: url(/img/saitama.webp) center / contain no-repeat; -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 72%); mask-image: radial-gradient(circle at 50% 50%, #000 35%, transparent 72%); }
.sh-hero .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.sh-eyebrow { display: inline-block; padding: 5px 12px; font: 800 12px/1 var(--font); letter-spacing: 3px; text-transform: uppercase; color: #111; background: var(--yellow); transform: skewX(-12deg); box-shadow: 3px 3px 0 var(--red); }
.sh-eyebrow + .sh-title { margin-top: 14px; }
.sh-title { margin: 10px 0 6px; font: 900 clamp(30px, 5vw, 46px)/1.08 var(--display); font-style: italic; text-transform: uppercase; text-shadow: 0 3px 0 #000, 0 0 24px rgba(255,212,0,.35); }
.sh-sub { margin: 0; color: #cfd5e2; max-width: 680px; }
.sh-sub b, .sh-p b { color: #fff; }
.sh-wallet { position: relative; min-width: 270px; padding: 16px 20px; background: linear-gradient(160deg, #2a2311, #171a23 55%, #11131a); border: 1px solid rgba(255,212,0,.45); border-radius: var(--radius); box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 14px 40px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,212,0,.25); }
.sh-wallet::before { content: ""; position: absolute; left: 14px; right: 14px; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--yellow), transparent); }
.sh-wallet .k { color: var(--muted); font-size: 13px; }
.sh-wallet .v { margin: 4px 0 10px; font: 900 32px/1.1 var(--display); color: var(--yellow); }
.sh-wallet .v small { font: 700 14px/1 var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.sh-wallet-act { display: flex; gap: 8px; flex-wrap: wrap; }
/* nền toàn trang cửa hàng: ảnh đội hình cố định (parallax) phủ tối + lưới mờ + hào quang; main:has = mọi trang Cửa Hàng */
main:has(.sh-body) { background-color: #0b0c10;
  background-image: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(255,212,0,.14), transparent 70%), radial-gradient(ellipse 45% 55% at 100% 100%, rgba(232,32,42,.18), transparent 70%),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11,12,16,.80), rgba(11,12,16,.90) 60%, rgba(11,12,16,.96)), url(/img/hero-team.webp);
  background-size: 100% 100%, 100% 100%, 100% 46px, 46px 100%, 100% 100%, cover;
  background-position: center, center, 0 0, 0 0, center, center 30%;
  background-repeat: no-repeat, no-repeat, repeat, repeat, no-repeat, no-repeat;
  background-attachment: scroll, scroll, scroll, scroll, fixed, fixed; }
@media (max-width: 760px) { main:has(.sh-body) { background-attachment: scroll; } }
.sh-body { padding: 26px 16px 70px; }
.sh-body .alert { margin-bottom: 18px; }
.sh-pts { color: var(--yellow); font-weight: 800; }
.sh-up { color: #86efac; } .sh-down { color: #fca5a5; }

/* tìm + lọc */
.sh-filter { display: flex; gap: 10px; margin-bottom: 14px; }
.sh-filter input { flex: 1; height: 48px; padding: 0 16px; font-size: 16px; border-radius: 10px; background: #0d0f15; border-color: rgba(255,212,0,.25); }
.sh-filter input:focus { border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(255,212,0,.15); }
.sh-filter .btn { height: 48px; padding: 0 26px; }
.sh-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.sh-chips a { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: #d4d9e4; font-size: 13.5px; font-weight: 700; }
.sh-chips a small { color: var(--muted); font-weight: 600; margin-left: 2px; }
.sh-chips a:hover { border-color: var(--yellow); color: var(--yellow); text-decoration: none; }
.sh-chips a.on { background: linear-gradient(180deg, #ffe45c, var(--yellow) 55%, var(--yellow2)); border-color: var(--yellow); color: #111; box-shadow: 0 3px 0 #9a6b00, 0 6px 16px rgba(255,212,0,.3); }
.sh-chips a.on small { color: #333; }

/* lưới sản phẩm */
.sh-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.sh-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px 14px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #1f2433 0%, #151824 60%, #11131b 100%); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  transition: transform .18s, box-shadow .18s, border-color .18s; }
.sh-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, rgba(255,212,0,.7), transparent); opacity: .6; }
.sh-card:hover { transform: translateY(-4px); border-color: rgba(255,212,0,.55); box-shadow: 0 16px 40px rgba(0,0,0,.6), 0 0 0 1px rgba(255,212,0,.25), 0 0 30px rgba(255,212,0,.12); }
.sh-card.hot { border-color: rgba(232,32,42,.5); }
.sh-card.hot::before { background: linear-gradient(90deg, transparent, var(--red), transparent); opacity: 1; }
.sh-card.out { opacity: .55; }
.sh-flag { position: absolute; top: 10px; right: 10px; z-index: 2; padding: 3px 10px; background: var(--red); color: #fff; font: 800 11px/1.2 var(--font); letter-spacing: 1px; transform: skewX(-12deg); box-shadow: 2px 2px 0 #000; }
.sh-card-ico { position: relative; display: grid; place-items: center; height: 124px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,.06);
  background: radial-gradient(circle at 50% 40%, rgba(255,212,0,.16), transparent 55%), repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.035) 0 6deg, transparent 6deg 12deg), radial-gradient(circle at 50% 35%, #2a3042, #0f1219); }
.sh-card.hot .sh-card-ico { background: radial-gradient(circle at 50% 40%, rgba(232,32,42,.22), transparent 55%), repeating-conic-gradient(from 0deg at 50% 45%, rgba(255,255,255,.035) 0 6deg, transparent 6deg 12deg), radial-gradient(circle at 50% 35%, #2a3042, #0f1219); }
.sh-ico { display: inline-grid; place-items: center; width: 84px; height: 84px; padding: 6px; border-radius: 14px; border: 2px solid var(--line); background: radial-gradient(circle at 50% 35%, #262c3b, #12151d); font: 900 30px/1 var(--display); color: var(--muted); box-shadow: 0 6px 18px rgba(0,0,0,.5); transition: transform .18s; }
.sh-card:hover .sh-ico { transform: scale(1.06); }
.sh-ico img { width: 100%; height: 100%; object-fit: contain; }
.sh-ico.xl { width: 132px; height: 132px; border-radius: 20px; }
.sh-qty { position: absolute; right: 8px; bottom: 8px; z-index: 1; padding: 2px 9px; border-radius: 999px; background: #000; color: var(--yellow); font-size: 13px; font-weight: 800; border: 1px solid rgba(255,212,0,.4); }
.sh-card-body { flex: 1; min-width: 0; }
.sh-cat { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sh-name { margin: 4px 0 6px; font-size: 16px; line-height: 1.3; }
.sh-note { margin: 0 0 6px; font-size: 12.5px; color: var(--muted); }
.sh-price { display: inline-flex; align-items: baseline; gap: 5px; margin-top: 2px; padding: 5px 12px 5px 10px; font: 900 15px/1.2 var(--display); color: #d8c58a; background: linear-gradient(180deg, rgba(255,212,0,.14), rgba(255,212,0,.05)); border: 1px solid rgba(255,212,0,.35); border-radius: 999px; }
.sh-price::before { content: ""; width: 14px; height: 14px; border-radius: 50%; align-self: center; background: radial-gradient(circle at 35% 35%, #fff2a8, var(--yellow) 45%, #b57c00); box-shadow: 0 0 0 1px #6b4a00; }
.sh-price .sh-pts { font-size: 20px; }
.sh-lim { margin-top: 4px; font-size: 12px; color: var(--muted); }
/* 30/11: thẻ COUPON tab Tất cả — thay khoảng giá bằng nhãn "Mua COUPON khuyến mãi Phiếu +50%" */
.sh-promo { display: inline-block; margin-top: 2px; padding: 6px 12px; font: 900 14px/1.25 var(--display); color: #111; text-transform: uppercase; letter-spacing: .3px;
  background: linear-gradient(180deg, #ffe45c, var(--yellow) 55%, var(--yellow2)); border-radius: 8px; box-shadow: 0 2px 0 #9a6b00; }
.sh-promo span { display: block; color: #b3121b; }
.sh-promo span img { display: inline-block; width: 22px; height: 22px; margin: -3px 5px 0 0; vertical-align: middle; object-fit: contain; filter: drop-shadow(0 1px 0 rgba(0,0,0,.35)); }
/* ô hình thẻ COUPON: COUPON + Phiếu */
.sh-cp-duo { grid-auto-flow: column; justify-content: center; gap: 8px; }
.sh-cp-duo .sh-plus { font: 900 26px/1 var(--display); color: var(--yellow); text-shadow: 0 2px 0 #000; }
.sh-cp-duo .sh-ico.sh-ph { width: 70px; height: 70px; }
@media (max-width: 600px) { .sh-cp-duo { gap: 4px; } .sh-cp-duo .sh-ico { width: 54px; height: 54px; } .sh-cp-duo .sh-ico.sh-ph { width: 48px; height: 48px; } .sh-cp-duo .sh-plus { font-size: 18px; } }
.sh-promo b { color: #b3121b; }
.sh-buy { margin-top: 2px; padding: 11px 14px; font-size: 13.5px; border-radius: 9px; }
.sh-card .btn.sh-buy:not(.ghost) { background: linear-gradient(180deg, #ffe45c, var(--yellow) 55%, var(--yellow2)); color: #111; box-shadow: 0 3px 0 #9a6b00, 0 6px 16px rgba(255,212,0,.25); }
.sh-card.hot .btn.sh-buy:not(.ghost) { background: linear-gradient(180deg, #ff4b53, var(--red) 50%, var(--red2)); color: #fff; box-shadow: 0 3px 0 #6d0a10, 0 6px 16px rgba(232,32,42,.3); }
.sh-empty { padding: 50px 16px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* trang mua / nạp / lịch sử */
.sh-buy-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 22px; align-items: start; }
.sh-panel { padding: 22px 24px; background: linear-gradient(180deg, #1a1e29, var(--card)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); min-width: 0; }
.sh-panel + .sh-panel { margin-top: 22px; }
.sh-panel h2 { margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 20px; }
.sh-item { text-align: center; }
.sh-item-ico { margin: 4px 0 12px; }
.sh-desc { color: #cfd5e2; font-size: 14px; line-height: 1.6; }
.sh-kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; text-align: left; }
.sh-kv:last-child { border-bottom: 0; }
.sh-kv > span:first-child { color: var(--muted); }
.sh-p { margin: 0 0 14px; color: #cfd5e2; line-height: 1.6; }
.sh-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 12px; }
.sh-row label { margin: 8px 0 6px; }
.sh-max { padding: 12px 14px; border: 1px dashed var(--line); border-radius: 9px; color: #cfd5e2; }
.sh-max small { color: var(--muted); }
.sh-body .tp-who { margin: 10px 0 4px; border-radius: 9px; }
.sh-total { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 18px 0; padding: 16px 18px; background: rgba(255,212,0,.06); border: 1px solid rgba(255,212,0,.25); border-radius: 10px; }
.sh-total .k { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; }
.sh-total .v { margin-top: 4px; font: 900 22px/1.2 var(--display); }
.sh-warn { margin: 0 0 12px; padding: 10px 12px; border-radius: 9px; background: rgba(232,32,42,.12); border: 1px solid rgba(232,32,42,.45); color: #ffb3b6; font-size: 14px; }
.sh-warn a { text-decoration: underline; }
.sh-body .tp-cta { margin-top: 6px; }
.sh-body .tp-table table { min-width: 560px; }
.sh-body .tp-table th { color: var(--muted); border-bottom-color: var(--line); }
.sh-body .tp-table td { border-bottom-color: var(--line); color: var(--text); }
.sh-body .tp-badge { border-color: var(--line); background: #10131b; color: #d4d9e4; }
.sh-body .tp-badge.pending { color: var(--yellow); }
.sh-body .tp-badge.done, .sh-body .tp-badge.paid { color: #86efac; }
.sh-body .tp-badge.cancelled, .sh-body .tp-badge.failed { color: #fca5a5; }
.sh-body .tp-code { color: var(--yellow); }
.sh-body.tp-scope .tp-methods { margin: 0 0 18px; }
@media (max-width: 900px) { .sh-buy-grid { grid-template-columns: 1fr; } .sh-row { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .sh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .sh-card { padding: 12px; } .sh-card-ico { height: 96px; } .sh-ico { width: 68px; height: 68px; } .sh-filter { flex-direction: column; } .sh-wallet { width: 100%; } }

/* GM: bảng danh mục sửa tại chỗ */
.admin-main table.sh-admin input, .admin-main table.sh-admin select { padding: 5px 7px; font-size: 13px; min-width: 0; }
.admin-main table.sh-admin input[type="checkbox"] { width: 18px; height: 18px; }
.admin-main table.sh-admin .w5 { width: 64px; } .admin-main table.sh-admin .w8 { width: 96px; } .admin-main table.sh-admin .w12 { width: 150px; }
.admin-main table.sh-admin td { padding: 6px 6px; }
.admin-main table.sh-admin tr.off td { opacity: .55; }
.admin-main table.sh-admin tr.off td.act { opacity: 1; }

/* 30/11 chủ: hiện số điểm ngay khu vật phẩm (thanh trên ô tìm) + khung "Bạn đang mua" ở Nạp Điểm khi đi từ Mua ngay thiếu điểm */
.sh-ptsbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding: 12px 18px;
  background: linear-gradient(160deg, #2a2311, #171a23 55%, #11131a); border: 1px solid rgba(255,212,0,.45); border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255,212,0,.2); }
.sh-ptsbar-v { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; min-width: 0; }
.sh-ptsbar-v .k { color: var(--muted); font-size: 14px; }
.sh-ptsbar-v .sh-pts { font: 900 28px/1.1 var(--display); }
.sh-ptsbar-v small { color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.sh-ptsbar-act { display: flex; gap: 8px; flex-wrap: wrap; }
.sh-need { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; padding: 14px 18px; background: linear-gradient(180deg, #1a1e29, var(--card)); border: 1px solid rgba(255,212,0,.35); border-radius: var(--radius); }
.sh-need .sh-ico { width: 64px; height: 64px; flex: none; font-size: 22px; }
.sh-need .k { color: var(--muted); font-size: 13px; }
.sh-need b { font-size: 17px; }
.sh-need .s { margin-top: 4px; color: #cfd5e2; font-size: 14px; }
@media (max-width: 600px) { .sh-ptsbar { padding: 10px 14px; } .sh-ptsbar-v .sh-pts { font-size: 24px; } .sh-need { align-items: flex-start; } }

/* 30/11 giỏ hàng: ô số lượng - [n] + trên thẻ, nút Giỏ hàng ở thanh điểm, trang /cua-hang/gio */
.sh-add { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.sh-card .sh-add .btn.sh-buy { width: 100%; }
.sh-qtyrow { display: flex; align-items: stretch; height: 38px; border: 1px solid rgba(255,212,0,.35); border-radius: 9px; overflow: hidden; background: #0d0f15; }
.sh-qtyrow input { flex: 1; min-width: 0; width: 100%; height: 100%; padding: 0 4px; border: 0; border-radius: 0; background: transparent; color: #fff; text-align: center; font: 800 16px/1 var(--display); -moz-appearance: textfield; appearance: textfield; }
.sh-qtyrow input::-webkit-outer-spin-button, .sh-qtyrow input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sh-qtyrow input:focus { outline: none; box-shadow: none; }
.sh-qbtn { flex: none; width: 38px; border: 0; background: rgba(255,212,0,.12); color: var(--yellow); font: 900 20px/1 var(--display); cursor: pointer; }
.sh-qbtn:hover { background: rgba(255,212,0,.25); }
.sh-cartbtn { position: relative; }
.sh-cartbtn.has b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 4px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 11px; }
.sh-cart { display: flex; flex-direction: column; gap: 12px; }
.sh-cline { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px 14px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(0,0,0,.25); }
.sh-cline.dead { opacity: .7; border-color: rgba(248,113,113,.4); }
.sh-cline .sh-ico { width: 64px; height: 64px; font-size: 22px; }
.sh-cinfo { min-width: 0; }
.sh-cinfo b { font-size: 16px; }
.sh-cinfo .s { margin-top: 3px; color: #cfd5e2; font-size: 13px; }
.sh-cqty { grid-column: 2 / -1; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sh-cqty .sh-qtyrow { width: 132px; }
.sh-csum { grid-column: 3; grid-row: 1; min-width: 110px; text-align: right; white-space: nowrap; }
.sh-cart-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); }
@media (max-width: 900px) { .sh-cart-grid { grid-template-columns: 1fr; } }
.sh-csum .sh-pts { font-size: 18px; }
.sh-clear { margin-top: 14px; text-align: right; }
@media (max-width: 600px) { .sh-cline { grid-template-columns: auto minmax(0, 1fr); } .sh-cqty { grid-column: 1 / -1; } .sh-csum { grid-column: 1 / -1; grid-row: auto; text-align: left; } }

/* 30/11: gói COUPON = COUPON xN + Phiếu xM (ô hình thẻ + trang mua), Tổng nhận có dòng Phiếu */
.sh-icw { position: relative; display: inline-grid; }
.sh-cp-duo .sh-icw .sh-qty { right: -8px; bottom: -6px; padding: 1px 7px; font-size: 12px; }
.sh-item-ico { display: flex; align-items: center; justify-content: center; gap: 10px; }
.sh-item-ico .sh-plus { font: 900 32px/1 var(--display); color: var(--yellow); text-shadow: 0 2px 0 #000; }
.sh-ico.xl.sh-ph { width: 108px; height: 108px; }
.sh-tbonus { margin-top: 4px; font-size: 17px; color: var(--yellow); }
.sh-tbonus small { color: var(--muted); font-size: 13px; }
@media (max-width: 600px) { .sh-ico.xl { width: 96px; height: 96px; } .sh-ico.xl.sh-ph { width: 80px; height: 80px; } .sh-cp-duo .sh-icw .sh-qty { font-size: 11px; } }
