/* HX ADMIN • Vòng quay may mắn — dùng biến màu chung nên tự theo Sáng / Tối */
.wh-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.wh-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.wh-quick { display: flex; gap: 6px; }
.wh-quick .btn { flex: 1; height: 52px; border-radius: 14px; font-size: 14px; }
.wh-step { display: flex; align-items: center; gap: 6px; }
.wh-step input { text-align: center; }
.wh-step .ib { flex-shrink: 0; }
.wh-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.wh-act { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.wh-pick { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--soft); font-weight: 600; font-size: 13px; margin-top: 10px; }
.wh-pick .av { width: 26px; height: 26px; font-size: 10px; }
.wh-tbl td, .wh-tbl th { padding: 10px 8px; }
.wh-tbl td .av { width: 30px; height: 30px; font-size: 11px; vertical-align: middle; margin-right: 8px; }
.wh-acts { display: flex; gap: 4px; justify-content: flex-end; }
.wh-pz { display: grid; grid-template-columns: 40px minmax(0, 1fr) 220px 80px 44px auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.wh-pz.off > :not(.sw):not(.wh-acts) { opacity: .45; }
.wh-pz .pic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 19px; background: var(--soft); }
.wh-pz b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wh-pz .sub { font-size: 12px; color: var(--muted); }
.wh-pz input[type="range"] { width: 100%; accent-color: var(--blue); }
.wh-pz .num { width: 70px; height: 38px; border-radius: 10px; border: 1px solid var(--inputb); background: var(--input); color: var(--text); text-align: right; padding: 0 8px; font-weight: 700; font-size: 14px; }
.wh-pz .num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wh-pz .stock { font-size: 12px; color: var(--muted); }
.wh-pz .stock.low { color: var(--goldt); }
.wh-tt { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; font-weight: 700; margin-top: 3px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.wh-tt.xu { background: rgba(255, 197, 61, .16); color: var(--goldt); }
.wh-tt.role { background: rgba(154, 100, 230, .16); color: #a678ef; }
.wh-tt.spin { background: rgba(59, 155, 255, .15); color: var(--bluet); }
.wh-tt.gift { background: rgba(255, 77, 141, .14); color: #e0306f; }
[data-theme="dark"] .wh-tt.gift { color: #ff9ec0; }
[data-theme="dark"] .wh-tt.role { color: #c8a6ff; }
.wh-sum { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); flex-wrap: wrap; }
.wh-bar { flex: 1; min-width: 180px; height: 12px; border-radius: 999px; background: var(--track); display: flex; overflow: hidden; }
.wh-bar i { display: block; height: 100%; }
.wh-ok { color: var(--mintt); font-weight: 700; }
.wh-bad { color: var(--redt); font-weight: 700; }
.wh-dirty { display: none; }
.wh-dirty.on { display: inline-flex; }
.wh-wv { position: relative; width: 100%; max-width: 260px; margin: 16px auto 6px; aspect-ratio: 1; }
.wh-wv canvas { width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 6px var(--soft), 0 0 0 8px rgba(255, 197, 61, .6), 0 20px 50px var(--glow1); }
.wh-wv .pin { position: absolute; left: 50%; top: -10px; transform: translateX(-50%); width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-top: 20px solid var(--gold); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.wh-wv .hb { position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff6d8, #ffc53d 60%, #a86a00); box-shadow: 0 0 0 4px var(--soft); }
.wh-ev { margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); font-size: 13px; }
.wh-ev .row-between { margin-top: 6px; }
.wh-ev b { font-size: 14px; }
.wh-emo { display: flex; flex-wrap: wrap; gap: 6px; }
.wh-emo button, .wh-cols button { width: 40px; height: 40px; border-radius: 11px; border: 1px solid var(--inputb); background: var(--input); font-size: 19px; cursor: pointer; }
.wh-emo button.on { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(59, 155, 255, .2); }
.wh-cols { display: flex; flex-wrap: wrap; gap: 8px; }
.wh-cols button { width: 32px; height: 32px; border-radius: 50%; border: 0; }
.wh-cols button.on { box-shadow: 0 0 0 3px var(--card-solid), 0 0 0 5px var(--text); }
.wh-log { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--raised); border: 1px solid var(--raisedb); margin-top: 14px; }
.wh-log .hs { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); font-weight: 700; color: var(--muted); }
.wh-st { font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 7px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.wh-st.pend { background: rgba(255, 138, 138, .14); color: var(--redt); }
.wh-st.ok { background: rgba(52, 227, 176, .14); color: var(--mintt); }
@media (max-width: 1180px) { .wh-grid { grid-template-columns: minmax(0, 1fr); } .wh-wv { max-width: 240px; } }
@media (max-width: 760px) {
  .wh-pz { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "p n s" "r r r" "k k a"; }
  .wh-pz .pic { grid-area: p; } .wh-pz .nm { grid-area: n; } .wh-pz .sw { grid-area: s; }
  .wh-pz .rate { grid-area: r; } .wh-pz .stock { grid-area: k; align-self: center; } .wh-pz .wh-acts { grid-area: a; }
  .wh-pz .num { display: none; }
  .wh-two { grid-template-columns: minmax(0, 1fr); }
  .wh-tbl th.hm, .wh-tbl td.hm { display: none; }
}
.wh-pz .rate { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wh-pz .rate em { font-style: normal; font-weight: 700; font-size: 13px; min-width: 46px; text-align: right; display: none; }
@media (max-width: 760px) { .wh-pz .rate em { display: block; } }

/* ---------- giao diện sự kiện (12/2026) ---------- */
.wh-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.wh-media.v { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wh-mt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.wh-mt .pv { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; }
.wh-mt .pv img, .wh-mt .pv video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.wh-mt .pv.chk img { object-fit: contain; background: transparent; }
.chk { background-color: #e9e7ef; background-image: linear-gradient(45deg, #d6d3df 25%, transparent 25%, transparent 75%, #d6d3df 75%), linear-gradient(45deg, #d6d3df 25%, transparent 25%, transparent 75%, #d6d3df 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; }
.wh-mt .ph { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; }
.wh-mt .wk { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; text-align: center; }
.wh-mt b { font-size: 13px; margin-top: 4px; }
.wh-mt .sub { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.wh-acts2 { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.wh-acts2 .dis, label.btn.dis { opacity: .5; pointer-events: none; }
.wh-prog { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.wh-pbar { flex: 1; height: 8px; border-radius: 999px; background: var(--track); overflow: hidden; }
.wh-pbar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
#whTheme textarea { width: 100%; min-height: 76px; resize: vertical; border: 0; background: transparent; color: var(--text); font: inherit; padding: 10px 0; }
.wh-pz .pic img { width: 100%; height: 100%; object-fit: contain; }
.wh-pz .pic.tier-vang { background: linear-gradient(160deg, #e8c55a, #8a6512); }
.wh-pz .pic.tier-tim { background: linear-gradient(160deg, #c98bff, #5a2b8f); }
.wh-pz .pic.tier-xanh { background: linear-gradient(160deg, #5a8fc0, #253a55); }
.wh-tt.tr-vang { background: rgba(255, 197, 61, .2); color: var(--goldt); }
.wh-tt.tr-tim { background: rgba(154, 100, 230, .18); color: #a678ef; }
.wh-tt.tr-xanh { background: rgba(59, 155, 255, .15); color: var(--bluet); }
.wh-pzimg { display: flex; align-items: center; gap: 10px; }
.wh-pzimg .pv { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 26px; overflow: hidden; }
.wh-pzimg .pv img { width: 100%; height: 100%; object-fit: contain; }
#pzTier { flex-wrap: wrap; }
@media (max-width: 900px) { .wh-media, .wh-media.v { grid-template-columns: repeat(2, minmax(0, 1fr)); } }