/* PackVerse — UI styles */
:root {
  --paper: #f5f6fa;
  --surface: #ffffff;
  --ink: #151722;
  --slate: #6a7086;
  --mist: #9aa0b4;
  --line: #e4e7ef;
  --sun: #ffc83d;
  --sun-soft: #fff6dc;
  --teal: #1ba27a;
  --danger: #e5484d;
  --glow: #b9bec7;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --display: 'Sora', 'Figtree', system-ui, sans-serif;
  --body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  --glow: #e9c86a;
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  background: transparent;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid #3b82f6; outline-offset: 2px; border-radius: 8px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--slate); }
.hidden { display: none !important; }

/* ---------- App shell ---------- */
.app { min-height: 100%; display: flex; flex-direction: column; max-width: 1180px; margin: 0 auto; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  height: 58px; padding: 0 10px;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.topbar h1 { margin: 0; text-align: center; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; }
.icon-btn:hover { background: #eceef4; }
.icon-btn svg { width: 24px; height: 24px; }
main { flex: 1; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }

.bottomnav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--surface); border-top: 1px solid var(--line);
}
.bottomnav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 12.5px; font-weight: 600; color: var(--mist); }
.bottomnav button svg { width: 26px; height: 26px; }
.bottomnav button[aria-current='page'] { color: var(--ink); }

/* ---------- Pack tabs ---------- */
.pack-tabs-wrap { position: relative; display: flex; align-items: center; }
.pack-tabs {
  flex: 1; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x proximity;
  padding: 6px 12px; scrollbar-width: none;
}
.pack-tabs::-webkit-scrollbar { display: none; }
.pack-tab {
  flex: 0 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 8px; border-radius: 14px; scroll-snap-align: start;
  transition: background .2s;
}
.pack-tab .thumb { width: 34px; height: 50px; }
.pack-tab .thumb svg { width: 100%; height: 100%; display: block; }
.pack-tab b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; letter-spacing: -0.01em; text-align: left; }
.pack-tab span { display: block; font-size: 14px; color: var(--slate); text-align: left; }
.pack-tab[aria-selected='true'] { background: #eceef3; }
.tabs-menu { flex: 0 0 auto; margin-right: 6px; }

.feed {
  height: 26px; margin: 2px 16px 0; overflow: hidden; font-size: 12.5px; color: var(--slate);
  display: flex; align-items: center; justify-content: center; gap: 6px; text-align: center;
}
.feed b { color: var(--ink); font-weight: 600; }
.feed .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); flex: 0 0 auto; box-shadow: 0 0 0 3px #1ba27a22; }
.feed-line { animation: feedIn .5s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes feedIn { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Gacha stage ---------- */
.gacha { display: grid; grid-template-columns: minmax(0, 1fr); }
.gacha > * { min-width: 0; }
.stage {
  position: relative; display: grid; place-items: center;
  height: clamp(290px, calc(100svh - 480px), 560px); perspective: 900px;
}
.stage::before {
  content: ''; position: absolute; inset: 6% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--glow) 55%, transparent), transparent 75%);
  filter: blur(8px); transition: background .5s;
}
.hero-pack {
  position: relative; width: min(48vw, 230px, calc((100svh - 540px) * .577)); aspect-ratio: 300 / 520;
  transform-style: preserve-3d; transition: transform .25s ease-out;
  animation: float 5s ease-in-out infinite;
  cursor: pointer;
}
.hero-pack svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 22px 26px rgba(30, 34, 52, .22)); }
.hero-pack .reflection { position: absolute; left: 4%; right: 4%; top: 101%; height: 22%; overflow: hidden; opacity: .22; transform: scaleY(-1); mask-image: linear-gradient(to top, #000, transparent 80%); -webkit-mask-image: linear-gradient(to top, #000, transparent 80%); pointer-events: none; }
.hero-pack .reflection svg { filter: none; height: auto; }
.pack-swap { animation: packIn .45s cubic-bezier(.2, .9, .3, 1.2); }
@keyframes packIn { from { opacity: 0; transform: translateY(16px) scale(.92); } }
@keyframes float { 50% { translate: 0 -8px; } }
.pack-sheen { animation: sheen 4.5s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-120px); } 100% { transform: translateX(420px); } }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 6px 8px 0; }
.stat { text-align: center; padding: 4px 6px; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 30%; height: 40%; border-left: 1px solid var(--line); }
.stat .num { display: block; font-size: 22px; font-weight: 700; }
.stat .lbl { font-size: 14px; color: var(--slate); }
.stat button.lbl { text-decoration: underline dotted; text-underline-offset: 4px; }

.controls { padding: 22px 16px 8px; display: grid; gap: 12px; }
.row2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px; }
.balance-pill {
  display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 12px;
  background: var(--sun-soft); border-radius: var(--r-md);
}
.balance-pill .amt { flex: 1; text-align: center; font-size: 19px; font-weight: 700; }
.usdt { width: 26px; height: 26px; flex: 0 0 auto; }
.plus { width: 26px; height: 26px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px; line-height: 1; }
.stepper { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; height: 52px; background: #eef0f4; border-radius: var(--r-md); }
.stepper button { height: 100%; font-size: 24px; color: var(--slate); }
.stepper button:disabled { color: #c7cbd6; cursor: default; }
.stepper output { text-align: center; font-family: var(--display); font-size: 20px; font-weight: 700; }

.cta {
  position: relative; height: 60px; border-radius: var(--r-md); width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--ink); color: #fff; font-family: var(--display); font-size: 18px; font-weight: 700;
  transition: transform .1s, background .2s;
}
.cta:active { transform: scale(.985); }
.cta .go { position: absolute; left: 6px; top: 6px; bottom: 6px; width: 54px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); }
.cta .go svg { width: 22px; height: 22px; }
.cta[disabled] { background: #eceef2; color: #b4b9c6; cursor: not-allowed; }
.cta[disabled] .go { background: #e2e5eb; }
.cta .usdt { width: 24px; height: 24px; }
.cta.sun { background: var(--sun); color: var(--ink); }

.disclaimer { padding: 6px 18px 0; font-size: 12px; color: var(--mist); text-align: center; }

@media (min-width: 900px) {
  .gacha { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 8px 24px; }
  .gacha .stage { height: 560px; }
  .gacha .side { background: var(--surface); border-radius: var(--r-lg); padding: 20px 8px 16px; border: 1px solid var(--line); }
  .hero-pack { width: 240px; }
}

/* ---------- Generic sections ---------- */
.page { padding: 4px 16px; }
.page h2 { font-family: var(--display); font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin: 6px 0 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.chip { flex: 0 0 auto; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--slate); }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: #eceef3; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.seg button { height: 36px; border-radius: 9px; font-weight: 600; font-size: 14px; color: var(--slate); }
.seg button[aria-selected='true'] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(20, 22, 34, .1); }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px 12px; }
.item { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.item .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 13px; }
.item .meta b { font-family: var(--display); font-size: 16px; }
.item .sub { font-size: 12px; color: var(--slate); margin-top: -6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item.selected .slab { outline: 3px solid var(--teal); outline-offset: 2px; }
.badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: #eef0f4; color: var(--slate); }
.badge.listed { background: #e8f1ff; color: #2563eb; }
.empty { text-align: center; padding: 40px 20px; color: var(--slate); }
.empty .cta { max-width: 260px; margin: 16px auto 0; }
.btn { height: 44px; padding: 0 16px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.ghost { background: #eceef3; color: var(--ink); }
.btn.sun { background: var(--sun); color: var(--ink); }
.btn.teal { background: var(--teal); }
.btn.sm { height: 34px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Profile ---------- */
.profile-head { display: flex; align-items: center; gap: 14px; padding: 6px 0 16px; }
.avatar { width: 60px; height: 60px; border-radius: 18px; flex: 0 0 auto; }
.profile-head .who { min-width: 0; flex: 1; }
.profile-head .uname { display: flex; align-items: center; gap: 6px; font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.profile-head .uname button { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--slate); }
.profile-head .addr { font-size: 13px; color: var(--slate); display: flex; gap: 6px; align-items: center; word-break: break-all; }
.wallet-card {
  border-radius: var(--r-lg); padding: 18px; color: #fff; margin-bottom: 18px;
  background: radial-gradient(120% 140% at 100% 0%, #3b3f58 0%, #151722 60%);
}
.wallet-card .lbl { font-size: 13px; opacity: .7; }
.wallet-card .big { font-family: var(--display); font-size: 34px; font-weight: 700; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.wallet-card .row { display: flex; gap: 10px; margin-top: 14px; }
.wallet-card .row .btn { flex: 1; }
.wallet-card .split { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; opacity: .85; }
.wallet-card .split b { display: block; font-family: var(--display); font-size: 16px; }
.list { display: grid; gap: 2px; }
.list .li { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.list .li .grow { flex: 1; min-width: 0; }
.list .li small { display: block; color: var(--slate); font-size: 12px; }
.pos { color: var(--teal); font-weight: 700; }
.neg { color: var(--ink); font-weight: 700; }
.kv { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px; font-size: 13px; margin-bottom: 14px; }
.kv label { color: var(--slate); display: block; margin-bottom: 2px; }
.kv code { word-break: break-all; font-size: 12px; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--slate); }
.field input, .field select { width: 100%; min-width: 0; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: var(--surface); }
.field input:focus { border-color: var(--ink); outline: none; }
.hint { font-size: 12px; color: var(--slate); }

.connect-card { text-align: center; padding: 30px 18px; }
.connect-card .fox { width: 72px; height: 72px; margin: 0 auto 10px; }
.connect-card h3 { font-family: var(--display); font-size: 22px; margin: 6px 0; }
.connect-card p { color: var(--slate); margin: 0 auto 18px; max-width: 34ch; }

/* ---------- Sheets / overlays ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(15, 17, 28, .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet {
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 18px calc(18px + var(--safe-b));
  animation: up .28s cubic-bezier(.2, .9, .3, 1);
}
@media (min-width: 700px) { .sheet-backdrop { align-items: center; } .sheet { border-radius: 22px; } }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: #d9dce5; margin: 0 auto 10px; }
.sheet h3 { font-family: var(--display); font-size: 21px; letter-spacing: -0.02em; margin: 4px 0 12px; }
.sheet .actions { display: grid; gap: 10px; margin-top: 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: .5; } }

.odds { width: 100%; border-collapse: collapse; font-size: 14px; }
.odds td, .odds th { padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.odds th { font-size: 12px; color: var(--slate); font-weight: 600; }
.odds td:last-child, .odds th:last-child { text-align: right; }
.rdot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: -1px; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.mini-cards figure { container-type: inline-size; margin: 0; font-size: 11px; color: var(--slate); text-align: center; }
.mini-cards figure .pcard { margin-bottom: 4px; }

.toast-wrap { position: fixed; left: 0; right: 0; top: 12px; z-index: 100; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); animation: up .25s; max-width: 92vw; }
.toast.err { background: var(--danger); }
.toast.ok { background: var(--teal); }

/* ---------- Opening experience ---------- */
.opening { position: fixed; inset: 0; z-index: 80; background: radial-gradient(circle at 50% 40%, #2a2e44, #0d0f18 70%); color: #fff; display: flex; flex-direction: column; animation: fade .25s; overflow: hidden; }
.opening .o-top { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-size: 14px; }
.opening .o-top b { font-family: var(--display); }
.opening .o-stage { flex: 1; display: grid; place-items: center; position: relative; perspective: 1200px; }
.burst { position: absolute; width: 140vmax; height: 140vmax; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 10deg, var(--burst, #fff) 10deg 14deg, transparent 14deg 40deg, var(--burst, #fff) 40deg 43deg, transparent 43deg 75deg, var(--burst, #fff) 75deg 79deg, transparent 79deg 110deg, var(--burst, #fff) 110deg 113deg, transparent 113deg 150deg, var(--burst, #fff) 150deg 154deg, transparent 154deg 190deg, var(--burst, #fff) 190deg 193deg, transparent 193deg 230deg, var(--burst, #fff) 230deg 234deg, transparent 234deg 270deg, var(--burst, #fff) 270deg 273deg, transparent 273deg 310deg, var(--burst, #fff) 310deg 314deg, transparent 314deg); opacity: 0; mask-image: radial-gradient(circle, #000 0, transparent 45%); -webkit-mask-image: radial-gradient(circle, #000 0, transparent 45%); pointer-events: none; }
.burst.on { animation: burst 2.4s ease-out forwards; }
@keyframes burst { 0% { opacity: 0; transform: scale(.4) rotate(0); } 15% { opacity: .55; } 100% { opacity: 0; transform: scale(1.1) rotate(40deg); } }

.tear-pack { position: relative; width: min(56vw, 260px); cursor: pointer; }
.tear-pack svg { display: block; width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); }
.tear-pack .pack-top { position: absolute; left: 0; top: 0; z-index: 2; transform-origin: 100% 100%; }
.tear-pack .pack-bottom { margin-top: calc(min(56vw, 260px) * 34 / 300); }
.tear-pack.shake { animation: shake .55s ease-in-out; }
.tear-pack.torn .pack-top { animation: tear .55s cubic-bezier(.3, .1, .3, 1) forwards; }
.tear-pack.torn .pack-bottom { animation: drop .7s .35s ease-in forwards; }
@keyframes shake { 20%, 60% { transform: rotate(-3deg) translateX(-4px); } 40%, 80% { transform: rotate(3deg) translateX(4px); } }
@keyframes tear { to { transform: translate(60px, -120px) rotate(28deg); opacity: 0; } }
@keyframes drop { to { transform: translateY(70vh) rotate(-6deg); opacity: 0; } }
.tap-hint { position: absolute; bottom: 8%; left: 0; right: 0; text-align: center; font-size: 14px; opacity: .7; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }

.reveal-card { position: relative; width: min(64vw, 300px); aspect-ratio: 63 / 88; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.3, .7, .2, 1.1); cursor: pointer; }
.reveal-card.flipped { transform: rotateY(180deg); }
.reveal-card > .face { container-type: inline-size; position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* Mặt trước bị ẩn hẳn cho tới khi lật qua 90° — không phụ thuộc backface-visibility (iOS/Android hay làm phẳng 3D khi có opacity/filter) */
.reveal-card > .front { transform: rotateY(180deg); visibility: hidden; }
.reveal-card.show-front > .front { visibility: visible; }
.reveal-card.show-front > .back { visibility: hidden; }
.rc-wrap { position: relative; animation: dealIn .45s cubic-bezier(.2, .9, .3, 1.1); }
.rc-wrap .glow { position: absolute; inset: -14%; border-radius: 30px; background: radial-gradient(closest-side, var(--rc, #fff), transparent); opacity: 0; transition: opacity .6s .3s; pointer-events: none; }
.rc-wrap.on .glow { opacity: .5; }
@keyframes dealIn { from { transform: translateY(40vh) scale(.6) rotate(-8deg); opacity: 0; } }
.reveal-info { text-align: center; min-height: 64px; margin-top: 22px; }
.reveal-info .rname { font-family: var(--display); font-size: 22px; font-weight: 700; }
.reveal-info .rval { font-size: 15px; opacity: .8; }
.reveal-info .rset { font-size: 13.5px; opacity: .7; margin: 2px 0 4px; }
.reveal-info .rtag { display: inline-block; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 999px; margin-bottom: 6px; color: #111; }
.o-bottom { padding: 14px 16px calc(16px + var(--safe-b)); display: grid; gap: 10px; }
.o-bottom .btn.ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.counter { display: flex; gap: 5px; justify-content: center; }
.counter i { width: 18px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.counter i.done { background: #fff; }

.summary { flex: 1; overflow: auto; padding: 4px 16px 10px; }
.summary h3 { font-family: var(--display); font-size: 24px; margin: 4px 0 2px; }
.summary .tot { font-size: 14px; opacity: .75; margin-bottom: 14px; }
.summary .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.summary .item .meta { color: #fff; }
.summary .item .sub { color: rgba(255, 255, 255, .6); }
.summary .item { position: relative; }
.summary .tick { position: absolute; top: 34%; right: 12px; z-index: 3; width: 26px; height: 26px; border-radius: 50%; background: rgba(0, 0, 0, .55); border: 2px solid #fff; display: grid; place-items: center; font-size: 14px; font-weight: 800; }
.summary .item.selected .tick { background: var(--teal); border-color: var(--teal); }

/* ---------- Real card ---------- */
.pcard {
  --c1: #ddd; --c2: #888; --tc: #9aa3ad; --hx: 50%; --hy: 50%;
  position: relative; width: 100%; aspect-ratio: 63 / 88; border-radius: 4.6% / 3.3%;
  overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 40%, #fff), color-mix(in srgb, var(--c2) 35%, #fff));
  box-shadow: 0 1px 2px rgba(20, 22, 34, .18), 0 8px 18px -6px rgba(20, 22, 34, .28);
  user-select: none; -webkit-user-select: none; transform: translateZ(0);
}
.pcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-fallback { position: absolute; inset: 0; display: none; flex-direction: column; justify-content: center; align-items: center; gap: 4%; padding: 10%; text-align: center; container-type: inline-size; color: #1b1e2b;
  border: 4cqw solid #f0c94a; border-radius: inherit; background: linear-gradient(160deg, color-mix(in srgb, var(--c1) 55%, #fff), color-mix(in srgb, var(--c2) 45%, #fff)); }
.pc-fallback b { font-family: var(--display); font-size: 11cqw; line-height: 1.05; letter-spacing: -0.02em; }
.pc-fallback span { font-size: 6.5cqw; font-weight: 600; opacity: .8; }
.pc-fallback .pf-set { font-size: 6cqw; opacity: .65; }
.pc-fallback .pf-num { font-variant-numeric: tabular-nums; }
.pcard.noimg img { display: none; }
.pcard.noimg .pc-fallback { display: flex; }
.pc-shine { position: absolute; inset: 0; pointer-events: none; opacity: 0; border-radius: inherit; transition: opacity .3s; }
.pcard.shiny .pc-shine { opacity: .55; mix-blend-mode: color-dodge;
  background:
    radial-gradient(circle at var(--hx) var(--hy), rgba(255, 255, 255, .55), transparent 38%),
    repeating-linear-gradient(115deg, rgba(255, 120, 180, .28) 0%, rgba(255, 220, 110, .28) 7%, rgba(120, 255, 210, .28) 14%, rgba(110, 180, 255, .28) 21%, rgba(210, 120, 255, .28) 28%, rgba(255, 120, 180, .28) 35%);
  background-size: 100% 100%, 260% 260%; background-position: center, var(--hx) var(--hy); }
.pcard.t-SSR.shiny .pc-shine, .pcard.t-UR.shiny .pc-shine { opacity: .75; }
.tilt { transition: transform .15s ease-out; transform-style: preserve-3d; will-change: transform; }

.tcg-back { width: 100%; height: 100%; border-radius: 4.6%/3.3%; container-type: inline-size; display: grid; place-items: center; color: #ffd76a;
  background: radial-gradient(circle at 50% 50%, #3a4380, #1b1f45 60%), #1b1f45; border: 3.6cqw solid #1a1d3c; box-shadow: 0 0 0 .6cqw #ffd76a inset, 0 10px 30px rgba(0, 0, 0, .5); }
.back-ring { width: 60%; text-align: center; }
.back-ring svg { width: 100%; display: block; }
.back-ring span { display: block; margin-top: 4cqw; font-family: var(--display); font-weight: 800; font-size: 7cqw; letter-spacing: .08em; }

/* vault case */
.slab {
  --tc: #9aa3ad;
  container-type: inline-size; position: relative; border-radius: 6% / 4.4%; padding: 4%;
  background: linear-gradient(160deg, rgba(255, 255, 255, .96), rgba(229, 233, 242, .92));
  border: 1px solid #d4d9e4; box-shadow: 0 1px 0 #fff inset, 0 10px 24px -10px rgba(20, 22, 34, .3);
}
.slab-label { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: stretch; gap: 3cqw; padding: 2.6cqw 3cqw 2.6cqw 4.4cqw; border-radius: 2.4cqw; margin-bottom: 3.4cqw;
  background: linear-gradient(#fff, #f2f4f8); border: .4cqw solid #dde1ea; color: #1b1e2b; font-size: 4cqw; line-height: 1.22; }
.slab-label::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 1.6cqw; background: var(--tc); }
.r-UR .slab-label { background: linear-gradient(90deg, #fff4f6, #fffbe8, #f0fbff); }
.sl-l { min-width: 0; display: flex; flex-direction: column; }
.sl-l b { font-family: var(--display); font-size: 5cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-l span { color: #5b6172; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-l .sl-off { color: #1b1e2b; font-weight: 600; }
.sl-r { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; flex: 0 0 auto; }
.sl-r .sl-tier { font-size: 3.4cqw; font-weight: 800; color: #fff; background: var(--tc); padding: .6cqw 2cqw; border-radius: 99px; }
.sl-r b { font-family: var(--display); font-size: 6.4cqw; line-height: 1; color: #5b6172; }
.slab-window { border-radius: 3cqw; padding: 2.6cqw; background: linear-gradient(160deg, rgba(214, 220, 232, .55), rgba(240, 243, 248, .7)); box-shadow: inset 0 0 0 .4cqw rgba(255, 255, 255, .85); }
.slab-foot { text-align: center; font-size: 3.2cqw; color: #8a90a2; margin-top: 2cqw; font-variant-numeric: tabular-nums; }
.slab.small .slab-label { font-size: 4.6cqw; }
.slab.small .sl-l b { font-size: 5.6cqw; }
.summary .slab, .opening .slab { background: linear-gradient(160deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); border-color: rgba(255, 255, 255, .18); }
.summary .slab-window { background: rgba(255, 255, 255, .07); }
.summary .slab-foot { color: rgba(255, 255, 255, .45); }

/* ---------- Gacha: chase fan + top hits ---------- */
.chase-fan { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.chase-fan .fc { position: absolute; width: min(30vw, 150px); left: calc(min(30vw, 150px) / -2); top: calc(min(30vw, 150px) * -0.98); transform-origin: 50% 120%; filter: saturate(1.05); }
.chase-fan .fc:nth-child(1) { transform: rotate(-17deg) translate(-38%, 4%); }
.chase-fan .fc:nth-child(2) { transform: rotate(17deg) translate(38%, 4%); }
.chase-fan .fc:nth-child(3) { transform: translateY(-30%) scale(.94); }
.chase-fan .pcard { box-shadow: 0 0 0 2px rgba(255, 255, 255, .7), 0 0 34px -4px var(--tc), 0 18px 30px -12px rgba(20, 22, 34, .35); }
.stage .hero-pack { z-index: 2; }
@media (min-width: 900px) { .chase-fan .fc { width: 170px; left: -85px; top: -168px; } }

.hits { padding: 18px 0 4px; }
.hits-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 16px 10px; }
.hits-head h3 { margin: 0; font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
.hits-head button { font-size: 13px; font-weight: 700; color: #2563eb; }
.hits-row { display: flex; gap: 12px; overflow-x: auto; padding: 4px 16px 14px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hits-row::-webkit-scrollbar { display: none; }
.hit { flex: 0 0 132px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 6px; text-align: left; }
.hit .pcard { box-shadow: 0 0 0 2px #fff, 0 8px 20px -8px var(--tc); }
.hit b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit .hv { font-family: var(--display); font-weight: 700; font-size: 16px; }
.hit small { font-size: 11.5px; color: var(--slate); line-height: 1.3; }
@media (min-width: 900px) { .hits { grid-column: 1 / -1; } }

/* card detail */
.card-big { max-width: 300px; margin: 0 auto 14px; perspective: 900px; }
.meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; font-size: 13px; margin: 6px 0 14px; }
.meta-grid label { display: block; color: var(--slate); font-size: 12px; }
.meta-grid b { font-size: 15px; }

/* admin users */
.u-search { display: flex; gap: 8px; margin-bottom: 10px; }
.u-search input { flex: 1; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 12px; background: var(--surface); font-size: 16px; }
.u-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; }
.u-row .avatar { width: 42px; height: 42px; border-radius: 12px; }
.u-row .grow { flex: 1; min-width: 0; }
.u-row b { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.u-row small { color: var(--slate); font-size: 12px; }
.u-row .ubal { text-align: right; font-family: var(--display); font-weight: 700; }
.u-row .ubal small { display: block; font-family: var(--body); font-weight: 500; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 12px; }
.amt-in { position: relative; }
.amt-in input { padding-left: 30px !important; font-family: var(--display); font-size: 20px !important; font-weight: 700; height: 54px !important; }
.amt-in span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--slate); font-weight: 700; font-size: 18px; }
.btn.danger-outline { background: #fdecec; color: #a3191e; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- Admin: pack odds ---------- */
.adm h2 { margin: 4px 0 4px; }
.adm h3 { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; margin: 0; }
.adm-head { margin-bottom: 14px; }
.cdot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3b82f6; vertical-align: 2px; }
.chip[aria-pressed='true'] .cdot { background: #9cc2ff; }
.adm-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.adm-stats > div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.adm-stats span { font-size: 12.5px; color: var(--slate); }
.adm-stats b { font-size: 21px; font-weight: 700; }
.adm-stats b em { font-style: normal; font-size: 13px; color: var(--slate); font-weight: 600; margin-left: 4px; }
.adm-stats b.bad { color: var(--danger); }
.adm-stats small { font-size: 12px; color: var(--mist); }
@media (min-width: 760px) { .adm-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.adm-warn { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; }
.adm-warn.bad { background: #fdecec; color: #a3191e; }
.adm-warn.warn { background: #fff4d6; color: #7a5300; }
.adm-section-title { display: flex; justify-content: space-between; align-items: baseline; margin: 24px 0 10px; }
#admSum { font-weight: 700; font-size: 14px; }
#admSum.ok { color: var(--teal); }
#admSum.bad { color: var(--danger); }
.adm-tier { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; }
.adm-row { display: flex; align-items: center; gap: 10px; }
.adm-row .rdot { margin: 0; flex: 0 0 auto; }
.adm-row .grow { flex: 1; min-width: 0; }
.adm-row b { display: block; font-size: 15.5px; }
.adm-row small { color: var(--slate); font-size: 12.5px; }
.pct-in { display: flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.pct-in input { width: 104px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 10px; text-align: right; font-family: var(--display); font-size: 17px; font-weight: 700; background: var(--paper); }
.pct-in input:focus, .w-in input:focus, .adm-inline input:focus { outline: none; border-color: var(--ink); background: var(--surface); }
.pct-in span { color: var(--slate); font-weight: 600; }
.adm-sub { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 12.5px; color: var(--mist); }
.adm-sub button { font-weight: 700; color: #2563eb; font-size: 13px; padding: 6px 0; }
.adm-cards { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.adm-card { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.adm-card.off { opacity: .45; }
.adm-card .mini { width: 34px; flex: 0 0 auto; container-type: inline-size; }
.adm-card .grow { flex: 1; min-width: 0; }
.adm-card b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adm-card small { color: var(--slate); font-size: 12px; }
.w-in { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--mist); }
.w-in input { width: 64px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); text-align: center; font-weight: 700; background: var(--paper); }
.adm-cardtools { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding-top: 10px; }
.adm-tools { display: grid; gap: 6px; margin: 18px 0; padding: 14px; border-radius: var(--r-md); background: #eef1f8; }
.adm-tools label { font-size: 13px; font-weight: 700; }
.adm-inline { display: flex; gap: 8px; align-items: center; }
.adm-inline input { width: 96px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 10px; font-weight: 700; text-align: right; background: var(--surface); }
.adm-inline span { color: var(--slate); font-size: 13px; flex: 1; }
.adm-actions { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b)); z-index: 5; display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 0 10px; background: linear-gradient(to bottom, transparent, var(--paper) 12px); }
.adm-danger { display: grid; gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.btn.danger { color: var(--danger); }
.btn.danger-solid { background: var(--danger); }

/* ---------- NFT Points ---------- */
.pts { width: 16px; height: 16px; vertical-align: -3px; flex: 0 0 auto; }
.pts.big { width: 44px; height: 44px; }
.btn.violet { background: linear-gradient(135deg, #8b5cf6, #4f7bff); color: #fff; }
.pts-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--slate); padding: 2px 2px 0; }
.pts-line b { color: var(--ink); }
.pts-b { display: inline-flex !important; align-items: center; gap: 4px; }
.pts-b .pts { width: 15px; height: 15px; }
.wallet-card .split { flex-wrap: wrap; }
.earned { display: inline-flex; align-items: center; gap: 6px; margin: -6px 0 14px; padding: 6px 12px; border-radius: 999px; background: rgba(139, 92, 246, .22); color: #e5dbff; font-size: 13.5px; font-weight: 700; }
.pts-hero { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-md); background: linear-gradient(135deg, #f1ebff, #e7eeff); }
.pts-hero b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.pts-hero small { color: var(--slate); font-size: 12.5px; }
.pts-hero .muted { font-size: 13px; }
.redeem { display: grid; gap: 2px; }
.rd-row { display: flex; align-items: center; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.rd-row .rd-pack { width: 30px; flex: 0 0 auto; }
.rd-row .rd-pack svg { width: 100%; display: block; }
.rd-row .grow { flex: 1; min-width: 0; }
.rd-row b { display: block; font-size: 14.5px; }
.rd-row small { color: var(--slate); font-size: 12px; }
.lb .li { gap: 10px; }
.lb .avatar { width: 32px; height: 32px; border-radius: 10px; }
.lb .li.me { background: #f4f0ff; border-radius: 10px; }
.rank { width: 24px; text-align: center; font-family: var(--display); font-weight: 800; color: var(--mist); }
.rank.r1 { color: #e0a100; } .rank.r2 { color: #8e99ab; } .rank.r3 { color: #b8743d; }
.lb .num { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }

.img-note { position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + var(--safe-b) + 10px); z-index: 70; display: flex; gap: 10px; align-items: flex-start;
  max-width: 560px; margin: 0 auto; padding: 12px 12px 12px 14px; border-radius: 14px; background: #1b1e2b; color: #fff; font-size: 13px; line-height: 1.4; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.img-note b { display: block; margin-bottom: 2px; }
.img-note button { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; }

/* ---------- Withdrawals ---------- */
.st { flex: 0 0 auto; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: #eef0f4; color: var(--slate); white-space: nowrap; }
.st-green { background: #e3f6ee; color: #12805c; } .st-blue { background: #e6efff; color: #2459d6; }
.st-amber { background: #fff2d6; color: #8a5a00; } .st-red { background: #fdecec; color: #a3191e; }
.w-info { font-size: 13px; line-height: 1.45; color: var(--slate); background: #f2f4f8; border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.w-info.on { background: #eaf7f1; color: #1d5d47; }
.w-info b { color: inherit; }
.hot { border-radius: var(--r-md); padding: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; }
.hot.on { border-color: #bfe8d6; }
.hot.off { background: #fff8e6; border-color: #f3dfa6; color: #6b4b00; line-height: 1.45; }
.hot code { display: block; font-size: 12px; word-break: break-all; margin: 6px 0 10px; color: var(--slate); }
.hot-top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.hot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.hot-grid label { display: block; color: var(--slate); font-size: 11.5px; }
.hot-grid b { font-size: 14.5px; }
.wrow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; margin-bottom: 10px; display: grid; gap: 4px; }
.wr-top { display: flex; justify-content: space-between; align-items: center; }
.wr-top b { font-size: 18px; }
.wr-meta { font-size: 12.5px; color: var(--slate); word-break: break-all; }
.wr-meta code { font-size: 11.5px; }
.wr-note { font-size: 12.5px; color: #8a5a00; background: #fff6e0; border-radius: 8px; padding: 6px 8px; }
.wr-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* ---------- Premium background ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #f7f8fc 0%, #eef1f8 55%, #f4f2fb 100%); }
.aur { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.aur.a1 { width: 70vmax; height: 70vmax; left: -20vmax; top: -30vmax; background: radial-gradient(circle, color-mix(in srgb, var(--glow) 75%, transparent), transparent 65%); animation: drift1 38s ease-in-out infinite alternate; transition: background 1s; }
.aur.a2 { width: 60vmax; height: 60vmax; right: -25vmax; top: 10vh; background: radial-gradient(circle, rgba(139, 92, 246, .38), transparent 65%); animation: drift2 46s ease-in-out infinite alternate; }
.aur.a3 { width: 55vmax; height: 55vmax; left: 10vw; bottom: -30vmax; background: radial-gradient(circle, rgba(56, 189, 248, .32), transparent 65%); animation: drift1 52s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(8vw, 6vh) scale(1.08); } }
@keyframes drift2 { to { transform: translate(-6vw, -4vh) scale(.94); } }
.foil { position: absolute; inset: -20%; opacity: .5; mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(115deg, rgba(255, 120, 180, .18) 0 2px, transparent 2px 22px),
    repeating-linear-gradient(65deg, rgba(110, 180, 255, .16) 0 1px, transparent 1px 26px),
    conic-gradient(from 200deg at 60% 40%, #ffd6ec22, #d6f0ff22, #e8ffd622, #fff2d622, #ffd6ec22);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 0%, transparent 70%);
  animation: foilshift 30s linear infinite; }
@keyframes foilshift { to { transform: translate3d(-3%, 2%, 0) rotate(1deg); } }
.floaters .fc2 { position: absolute; width: clamp(54px, 9vw, 120px); color: color-mix(in srgb, var(--glow) 55%, #7c6bd6); opacity: .16;
  transform: rotate(var(--r)) scale(var(--s)); animation: bob 14s ease-in-out infinite; filter: drop-shadow(0 6px 14px rgba(40, 30, 90, .12)); }
.floaters .fc2 svg { display: block; width: 100%; }
@keyframes bob { 50% { transform: rotate(calc(var(--r) + 4deg)) scale(var(--s)) translateY(-14px); } }
.sparks .sp { position: absolute; color: #fff; opacity: 0; filter: drop-shadow(0 0 4px color-mix(in srgb, var(--glow) 80%, #fff)); animation: twinkle 5s ease-in-out infinite; }
.sparks .sp svg { width: 100%; height: 100%; display: block; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4) rotate(0); } 45% { opacity: .9; transform: scale(1) rotate(45deg); } }
.vignette { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(20, 22, 40, .07));
  /* hạt giấy rất nhẹ cho cảm giác in ấn */
  background-image: radial-gradient(ellipse at 50% 40%, transparent 55%, rgba(20, 22, 40, .07)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
/* Chùm sáng sân khấu phía sau túi, nhuộm theo màu túi đang chọn */
.rays { position: absolute; left: 50%; top: calc(46vh - 80vmax); width: 160vmax; height: 160vmax; translate: -50% 0; opacity: .55;
  background: repeating-conic-gradient(from 0deg at 50% 50%, color-mix(in srgb, var(--glow) 34%, transparent) 0deg 5deg, transparent 5deg 15deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 42%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, rgba(0, 0, 0, .55) 18%, transparent 42%);
  animation: spin 140s linear infinite; transition: background 1s; }
@keyframes spin { to { rotate: 360deg; } }
/* Sàn lưới phối cảnh ánh holo ở cuối trang */
.floor { position: absolute; left: -30%; right: -30%; bottom: -8vh; height: 46vh; transform: perspective(520px) rotateX(62deg); transform-origin: 50% 100%;
  background:
    linear-gradient(90deg, rgba(124, 107, 214, .22) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(0deg, rgba(124, 107, 214, .22) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(90deg, #ffd6ec55, #d6f0ff66, #e8ffd655, #fff0c766, #ffd6ec55);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .6) 45%, transparent 100%);
  animation: floorrun 6s linear infinite; }
@keyframes floorrun { to { background-position: 0 64px, 0 64px, 0 0; } }
/* Thẻ bay: thêm lớp holo cầu vồng phía sau viền */
.floaters .fc2::before { content: ''; position: absolute; inset: 1.5% 2%; border-radius: 7%;
  background: linear-gradient(135deg, #ffd6ec, #d6e6ff 35%, #e3ffe0 60%, #fff0c4 85%); opacity: .85; z-index: -1; }
.floaters .fc2 { opacity: .22; isolation: isolate; }
@media (max-width: 600px) { .floaters .fc2:nth-child(n+5) { display: none; } .rays { opacity: .45; } .floor { height: 30vh; } }
@media (min-width: 900px) { .rays { left: 31%; top: calc(55vh - 80vmax); } }
@media (prefers-reduced-motion: reduce) { .rays, .floor, .aur, .foil, .floaters .fc2, .sparks .sp { animation: none !important; } }
.topbar { background: color-mix(in srgb, #f7f8fc 78%, transparent); }
.bottomnav { background: color-mix(in srgb, #ffffff 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }

.demo-bar { position: sticky; top: 0; z-index: 25; text-align: center; font-size: 12.5px; font-weight: 700; padding: 6px 12px; color: #6b4b00; background: repeating-linear-gradient(135deg, #ffe9a8 0 14px, #fff1c4 14px 28px); }
.demo-bar + .topbar { top: 30px; }

/* ---------- Announcements + live wins ---------- */
.ann-banner { display: flex; align-items: center; gap: 10px; margin: 4px 16px 6px; padding: 9px 10px 9px 12px; border-radius: 14px; font-size: 13.5px;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.ann-banner .ann-t { flex: 1; min-width: 0; }
.ann-banner button { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 8px; color: var(--slate); }
.ann-k { flex: 0 0 auto; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: #e6efff; color: #2459d6; }
.k-event .ann-k, .ann-k.k-event, .win.k-event em { background: #f1ebff; color: #6d3fe0; }
.k-promo .ann-k, .ann-k.k-promo, .win.k-promo em { background: #fff1d6; color: #9a5b00; }
.wins { display: flex; align-items: center; gap: 10px; height: 46px; margin: 2px 16px 0; padding: 0 0 0 10px; border-radius: 14px; overflow: hidden;
  background: rgba(21, 23, 34, .9); color: #e8eaf2; box-shadow: 0 8px 22px -12px rgba(20, 22, 40, .6); }
.wins.empty-w { display: none; }
.wins-live { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; color: #fff; padding-right: 10px; border-right: 1px solid rgba(255, 255, 255, .14); }
.wins-live i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .25); animation: pulse 1.6s ease-in-out infinite; }
.wins-vp { flex: 1; min-width: 0; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 92%, transparent); }
.wins-track { display: inline-flex; gap: 22px; white-space: nowrap; animation: marquee linear infinite; padding-left: 8px; }
.wins:hover .wins-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.win { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.win b { color: #fff; font-weight: 700; }
.win .wc { color: var(--tc, #fff); }
.win .wv { font-family: var(--display); font-weight: 700; color: #fde68a; }
.win .wp { color: #9aa0b4; font-size: 12px; }
.wthumb { width: 22px; height: 30px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1.5px var(--tc, #888); flex: 0 0 auto; }
.wthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.win.ann em { font-style: normal; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; background: #e6efff; color: #2459d6; margin-right: 4px; }
@media (prefers-reduced-motion: reduce) { .wins-vp { overflow-x: auto; } .wins-track { animation: none; } }

/* ---------- Top depositors ---------- */
.board { padding: 6px 0 10px; }
.board-card { margin: 0 16px; padding: 12px; border-radius: var(--r-md); background: rgba(255, 255, 255, .82); border: 1px solid var(--line); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.seg.mini { margin-bottom: 8px; padding: 3px; }
.seg.mini button { height: 30px; font-size: 12.5px; }
.lb2 { list-style: none; margin: 0; padding: 0; }
.lb2 li { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-bottom: 1px solid var(--line); }
.lb2 li:last-child { border-bottom: 0; }
.lb2 li.me { background: #f4f0ff; border-radius: 10px; }
.lb2 .avatar { width: 32px; height: 32px; border-radius: 10px; }
.lb2 .grow { flex: 1; min-width: 0; }
.lb2 b { display: block; font-size: 14.5px; }
.lb2 b em { font-style: normal; font-size: 11px; font-weight: 800; color: #6d3fe0; background: #ede6ff; padding: 1px 6px; border-radius: 999px; margin-left: 4px; }
.lb2 small { color: var(--slate); font-size: 12px; }
.lb2 .amt { font-weight: 800; font-size: 15px; }
.medal { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; color: #fff; flex: 0 0 auto; }
.medal.m1 { background: linear-gradient(135deg, #ffe08a, #e0a100); } .medal.m2 { background: linear-gradient(135deg, #e6ebf2, #8e99ab); } .medal.m3 { background: linear-gradient(135deg, #f3c39a, #b8743d); }
.lb2 .rank { width: 26px; flex: 0 0 auto; }
@media (min-width: 900px) { .board { grid-column: 1 / -1; } .board-card { max-width: 720px; } }

/* ---------- Admin mode / news ---------- */
.mode-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); margin: 4px 0 12px; font-size: 13px; background: var(--surface); border: 1px solid var(--line); }
.mode-card > div { min-width: 0; }
.mode-card b { display: block; font-size: 15px; margin-top: 4px; }
.mode-card small { color: var(--slate); }
.mode-card.demo { background: #fff8e6; border-color: #f3dfa6; }
.mode-card.live { background: #eaf7f1; border-color: #bfe8d6; }
.mode-chip { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #1b1e2b; color: #fff; }
.mode-card.demo .mode-chip { background: #e0a100; } .mode-card.live .mode-chip { background: #12805c; }
.cklist { display: grid; gap: 8px; }
.ck { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: #f4f6fa; font-size: 13px; }
.ck > span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex: 0 0 auto; }
.ck.ok > span { background: #12805c; } .ck.warn > span { background: #e0a100; }
.ck b { display: block; } .ck small { color: var(--slate); word-break: break-all; }
.news-form textarea { width: 100%; border-radius: 12px; border: 1.5px solid var(--line); padding: 10px 12px; font: inherit; font-size: 16px; resize: vertical; background: var(--surface); }
.vis-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: #f4f6fa; margin-bottom: 12px; cursor: pointer; }
.vis-row b { display: block; font-size: 14px; } .vis-row small { color: var(--slate); font-size: 12px; }
.vis-row input { width: 22px; height: 22px; accent-color: var(--teal); flex: 0 0 auto; }
.seg button { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
.mode-card .btn { white-space: nowrap; flex: 0 0 auto; }

/* =========================================================
   Desktop layout (≥ 900px) — phones keep the mobile layout
   ========================================================= */
.dheader, .desk-only { display: none; }
.app { max-width: none; }
main { width: 100%; max-width: 1180px; margin: 0 auto; }
.site-foot { margin: 26px 16px 8px; padding: 18px 0 6px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--slate); }
.sf-in { display: grid; gap: 10px; }
.sf-brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-family: var(--display); }
.sf-brand .logo-mark { width: 26px; height: 26px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.site-foot nav button { font-weight: 600; color: var(--ink); font-size: 13px; padding: 4px 0; }
.site-foot p { margin: 0; max-width: 72ch; line-height: 1.5; }
.m-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.m-toolbar .chips { flex: 1 1 320px; }
.m-sort { max-width: 220px; margin-bottom: 12px; }
.lower { display: contents; }

@media (min-width: 900px) {
  .topbar, .bottomnav { display: none; }
  main { padding: 0 24px 40px; }
  .demo-bar { position: sticky; top: 0; }
  .demo-bar ~ .dheader { top: 30px; }
  .desk-only { display: block; }

  .dheader { display: block; position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, #fbfbfe 80%, transparent);
    backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom: 1px solid rgba(228, 231, 239, .8); }
  .dh-in { max-width: 1180px; margin: 0 auto; height: 68px; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
  .logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
  .logo-mark { width: 34px; height: 34px; }
  .dh-nav { display: flex; gap: 4px; }
  .dh-link { height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 600; color: var(--slate); }
  .dh-link:hover { background: rgba(21, 23, 34, .05); color: var(--ink); }
  .dh-link[aria-current='page'] { color: var(--ink); background: rgba(21, 23, 34, .07); }
  .dh-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
  .dh-right .btn.sun { height: 42px; }
  .dh-chip { height: 40px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
  .dh-chip:hover { border-color: #cfd4df; }
  .dh-chip .usdt { width: 22px; height: 22px; }
  .dh-chip .pts { width: 18px; height: 18px; }
  .bal-chip { background: var(--sun-soft); border-color: #f6e3a6; }
  .bal-chip .plus { width: 22px; height: 22px; font-size: 15px; }
  .dh-user { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 4px; border-radius: 12px; font-weight: 700; max-width: 200px; }
  .dh-user:hover { background: rgba(21, 23, 34, .05); }
  .dh-user .avatar { width: 32px; height: 32px; border-radius: 10px; }
  .dh-user span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Gacha */
  .pack-tabs-wrap { margin-top: 14px; }
  .pack-tabs { justify-content: center; gap: 10px; }
  .pack-tab { padding: 8px 18px 8px 10px; }
  .pack-tab:hover { background: rgba(21, 23, 34, .04); }
  .ann-banner, .wins { margin-left: 0; margin-right: 0; }
  .gacha { padding: 8px 0 0; gap: 32px; }
  .gacha .side { padding: 26px 14px 18px; box-shadow: 0 24px 60px -30px rgba(30, 34, 60, .35); background: rgba(255, 255, 255, .86); backdrop-filter: blur(10px); }
  .lower { display: grid; grid-column: 1 / -1; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 28px; align-items: start; }
  .lower .hits, .lower .board { grid-column: auto; }
  .hits { padding-top: 6px; }
  .hits-head { padding: 0 0 10px; }
  .hits-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px 12px; overflow: visible; padding: 4px 0 0; scroll-snap-type: none; }
  .hit { flex: none; }
  .hit:hover .pcard { transform: translateY(-4px); transition: transform .2s; }
  .board { padding-top: 6px; }
  .board-card { margin: 0; max-width: none; }
  .footer-space { height: 0; }

  /* Market */
  .page { padding: 4px 0; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 22px 18px; }
  .m-toolbar .chips { padding-bottom: 12px; }
  .m-seg { max-width: 360px; }
  .page > h2.desk-only { margin-top: 22px; }

  /* Profile: two columns */
  .p-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; padding-top: 22px; }
  .p-side { position: sticky; top: 92px; }
  .p-side .wallet-card .row { flex-direction: column; }
  .p-side .wallet-card .row .btn { flex: none; width: 100%; height: 44px; }
  .p-main .seg { margin-top: 6px; }
  .p-main .grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

  /* Admin + sheets */
  .page.adm, .adm-u, .adm-w, .adm-n { max-width: 960px; margin: 0 auto; padding-top: 18px; }
  .adm-actions { bottom: 0; }
  .sheet { max-width: 600px; }
  .site-foot { margin: 40px 0 0; }
  .sf-in { grid-template-columns: auto 1fr; align-items: center; gap: 12px 32px; }
  .site-foot p { grid-column: 1 / -1; }
  .site-foot nav { justify-content: flex-end; }
  .img-note { bottom: 20px; }
  .adm-actions { position: sticky; bottom: 0; }
}
@media (min-width: 900px) and (max-width: 1099px) {
  .lower { grid-template-columns: minmax(0, 1fr); }
  .hits-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1400px) {
  main, .dh-in { max-width: 1280px; }
}

/* ---------- Invite / affiliate ---------- */
.invite-cta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; padding: 12px 14px; margin: -4px 0 12px; border-radius: var(--r-md);
  background: linear-gradient(135deg, #f1ebff, #e6f0ff); border: 1px solid #ddd3ff; }
.invite-cta b { display: block; font-size: 14.5px; }
.invite-cta small { color: var(--slate); font-size: 12.5px; }
.invite-cta svg { width: 20px; height: 20px; flex: 0 0 auto; color: #6d3fe0; }
.inv-hero { border-radius: var(--r-lg); padding: 16px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #6d4bd8 0%, #2a2350 55%, #151722 100%); display: grid; gap: 8px; }
.inv-top { display: flex; justify-content: space-between; gap: 12px; }
.inv-top b { display: block; font-size: 38px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.inv-hero .muted, .inv-hero small { color: rgba(255, 255, 255, .72); font-size: 12.5px; }
.inv-stat { text-align: right; }
.inv-stat span { font-size: 12.5px; opacity: .75; display: block; }
.inv-stat b { font-size: 22px; font-weight: 800; }
.inv-prog { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.inv-prog i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ffd76a, #f0a92b); }
.inv-link { margin: 14px 0; padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.inv-link label, .inv-apply label { display: block; font-size: 13px; font-weight: 700; color: var(--slate); margin-bottom: 6px; }
.inv-row { display: flex; gap: 8px; align-items: center; }
.inv-row code { flex: 1; min-width: 0; font-size: 12.5px; padding: 10px 12px; border-radius: 10px; background: #f4f6fa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-row input { flex: 1; min-width: 0; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); padding: 0 10px; font-size: 16px; background: var(--surface); }
.inv-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.inv-btns .btn { height: 40px; }
.inv-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.inv-stats > div { background: var(--surface); padding: 12px; text-align: center; }
.inv-stats b { display: block; font-size: 19px; font-weight: 800; }
.inv-stats span { font-size: 12px; color: var(--slate); }
.inv-h { margin: 20px 0 8px; font-size: 15px; }
.inv-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; color: var(--slate); }
.inv-steps b { color: var(--ink); }
.inv-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-top: 12px; }
.inv-tiers > div { border-radius: 12px; padding: 10px; background: #f4f6fa; border: 1px solid var(--line); }
.inv-tiers > div.on { background: #f1ebff; border-color: #d9ccff; }
.inv-tiers b { display: block; font-size: 18px; font-family: var(--display); }
.inv-tiers span { font-size: 12px; color: var(--slate); }
.inv-apply { margin-top: 16px; padding: 14px; border-radius: var(--r-md); background: #fff8e6; border: 1px solid #f3dfa6; }
.inv-apply small { color: #6b4b00; font-size: 12px; }
.list .li .avatar { width: 32px; height: 32px; border-radius: 10px; }
.aff-kv { gap: 14px; }
.aff-kv small { display: block; margin-top: 2px; }

/* ---------- Admin: analytics ---------- */
.adm-a { --ana-1: #4f5bd5; --ana-2: #d97a06; }
.ana-head { display: flex; gap: 10px; align-items: center; margin: 2px 0 12px; }
.ana-head .seg { flex: 1; margin: 0; }
.ana-head .seg button { font-size: 13px; }
.ana-note { font-size: 13px; color: #8a5a00; background: var(--sun-soft); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; }
.ana-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.ana-kpis > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ana-kpis span { font-size: 12.5px; color: var(--slate); }
.ana-kpis b { font-size: 22px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.ana-kpis small { font-size: 12px; color: var(--mist); }
.ana-kpis .live span::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 6px; vertical-align: 1px; box-shadow: 0 0 0 3px rgba(27, 162, 122, .18); }
.ana-kpis .neg b, .ana-tbl .neg, .ana-money .neg b { color: var(--danger); }
.ana-card { padding: 14px; margin-bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); min-width: 0; }
.ana-card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.ana-card-h h3 { font: 700 15px var(--display); margin: 0; }
.ana-met { margin: 0; overflow-x: auto; grid-auto-columns: max-content; }
.ana-met button { font-size: 12.5px; padding: 0 10px; height: 30px; white-space: nowrap; }
.ana-legend { display: flex; gap: 14px; font-size: 12.5px; color: var(--slate); margin-bottom: 4px; }
.ana-legend i, .ana-tip i, .ana-pk i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.ana-chart { position: relative; }
.ana-chart svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.ana-grid { stroke: var(--line); stroke-width: 1; }
.ana-base { stroke: #c9cdd8; stroke-width: 1; }
.ana-ax { font: 500 11px var(--body); fill: var(--mist); }
.ana-cross { stroke: #9aa0b4; stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; pointer-events: none; }
.ana-tip { position: absolute; top: -6px; transform: translateY(-100%); background: var(--ink); color: #fff; border-radius: 10px; padding: 8px 10px; font-size: 12px; pointer-events: none; display: grid; gap: 3px; min-width: 150px; box-shadow: 0 6px 20px rgba(20, 22, 34, .25); z-index: 3; }
.ana-tip[hidden] { display: none; }
.ana-tip span { display: flex; align-items: center; gap: 0; }
.ana-tip span b { margin-left: auto; padding-left: 12px; font-variant-numeric: tabular-nums; }
.ana-tbl-wrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
.ana-tbl { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 620px; }
.ana-tbl th { text-align: right; font-weight: 600; color: var(--slate); font-size: 12px; padding: 6px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.ana-tbl th:first-child, .ana-tbl td:first-child { text-align: left; }
.ana-tbl td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: right; vertical-align: top; }
.ana-tbl td small { display: block; font-size: 11.5px; color: var(--mist); font-family: var(--body); margin-top: 1px; }
.ana-tbl tfoot td { font-weight: 700; border-bottom: 0; }
.ana-pk { font-weight: 600; white-space: nowrap; }
.ana-foot { font-size: 12px; margin: 10px 0 0; }
.ana-money { display: grid; gap: 0; }
.ana-money > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.ana-money > div span { color: var(--slate); }
.ana-money .strong { border-bottom: 0; font-weight: 700; }
.ana-money .strong span { color: var(--ink); }
.ana-money .warn b { color: #b26a00; }
.ana-liab { margin-top: 10px; background: #f3f4fb; border-radius: 12px; padding: 10px 12px; display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; }
.ana-liab span { font-size: 13px; font-weight: 600; }
.ana-liab b { font-size: 16px; }
.ana-liab small { grid-column: 1 / -1; font-size: 12px; color: var(--slate); }
.ana-sub { font: 700 13px var(--display); margin: 14px 0 6px; }
.ana-top { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.ana-top li { display: grid; grid-template-columns: 22px 1fr auto auto; gap: 8px; align-items: center; padding: 6px 0; font-size: 13px; counter-increment: t; }
.ana-top li::before { content: counter(t); color: var(--mist); font-size: 12px; }
.ana-top .link { text-align: left; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ana-top .link:hover { text-decoration: underline; }
.ana-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ana-bars li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.ana-bars li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ana-bars li i { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: #eceef3; position: relative; overflow: hidden; }
.ana-bars li i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--ana-1); border-radius: 3px; }
.ana-empty { font-size: 13px; margin: 4px 0; }
@media (min-width: 900px) {
  .ana-kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ana-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .ana-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .ana-tbl-wrap { margin: 0; padding: 0; }
}
@media (max-width: 640px) {
  .adm-tabs { grid-auto-columns: max-content; overflow-x: auto; scrollbar-width: none; }
  .adm-tabs::-webkit-scrollbar { display: none; }
  .adm-tabs button { padding: 0 14px; }
}
