/* =========================================================
   Global glass polish
   ========================================================= */

:root {
  --glass-bg: rgba(255, 255, 255, .68);
  --glass-border: rgba(255, 255, 255, .82);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .92), 0 12px 34px rgba(0, 0, 0, .045);
}

.card,
.side-card,
.table-wrap,
.stat-card,
.goods-detail,
.recharge-form,
.balance-hero,
.recharge-hero,
.feature-item {
  border-color: var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.card:hover {
  border-color: rgba(255, 255, 255, .96);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 20px 46px rgba(0, 0, 0, .075);
}
.card-body { background: rgba(255, 255, 255, .28); }
.card-cover { background-color: #e9e9ee; }

.section-title { font-weight: 680; }
.section-title .small { font-weight: 500; }

.search-bar {
  border-color: rgba(255, 255, 255, .88);
  background: rgba(255, 255, 255, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .94), 0 10px 28px rgba(0, 0, 0, .04);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}

.mm-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #3a3a3c;
}
.mm-links a::after { content: "›"; color: #c7c7cc; font-size: 19px; font-weight: 400; line-height: 1; }
.mm-links a:active { background: rgba(0, 0, 0, .05); }

.btn:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .28);
  outline-offset: 2px;
}

.lock-mark {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .84);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.lock-mark svg { width: 27px; height: 27px; }
.locked-player { background: radial-gradient(450px 260px at 50% -10%, rgba(0,113,227,.18), transparent 70%), #111 !important; }

.empty { border-color: rgba(255, 255, 255, .82); background: rgba(255, 255, 255, .55); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }

@media (max-width: 760px) {
  .search-bar { flex-wrap: wrap; }
  .search-bar input[type="text"],
  .search-bar input[type="email"],
  .search-bar input[type="number"] {
    flex: 1 1 0;
    min-width: 0;
    flex-basis: auto;
  }
  .search-bar .btn { flex: 0 0 auto; width: auto; }
  .search-bar select { flex: 1 1 100%; }
  .section-title { font-weight: 660; }
  .card-body { background: rgba(255, 255, 255, .38); }
}
.cover-fallback {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.cover-fallback svg { width: 20px; height: 20px; margin-left: 2px; }
.product-placeholder {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.055);
  border-radius: 19px;
  background: rgba(255,255,255,.64);
  color: #86868b;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.9);
}
.product-placeholder svg { width: 28px; height: 28px; }
.product-placeholder-lg { width: 108px; height: 108px; border-radius: 28px; }
.product-placeholder-lg svg { width: 46px; height: 46px; }
/* Category filters and mobile search bar alignment */
.category-pills.category-groups {
  gap: 6px 9px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, .86);
  border-radius: 19px;
  background: rgba(255, 255, 255, .66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.94), 0 8px 24px rgba(0,0,0,.035);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
.category-pills.category-groups .cat-group { gap: 6px; }
.category-pills.category-groups .cat-parent {
  padding: 6px 12px;
  border: 1px solid rgba(0, 0, 0, .075);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  color: #3a3a3c;
  font-size: 11.5px;
  font-weight: 500;
}
.category-pills.category-groups .cat-parent:hover {
  border-color: rgba(0, 0, 0, .14);
  background: #fff;
  color: var(--text);
  transform: none;
}
.category-pills.category-groups .cat-parent.active {
  border-color: #1d1d1f;
  background: #1d1d1f;
  color: #fff;
}
.category-pills.category-groups .cat-child {
  padding: 6px 10px;
  background: rgba(0, 0, 0, .045);
  color: #6e6e73;
  font-size: 11px;
}

@media (max-width: 760px) {
  .search-bar input[type="text"],
  .search-bar input[type="email"],
  .search-bar input[type="number"] { width: auto; }
  .search-bar .btn { width: auto; white-space: nowrap; }
}
.empty { padding: 46px 22px; }
@media (max-width: 760px) {
  .empty { padding: 34px 14px; border-radius: 17px; font-size: 12px; }
  .table-wrap { border-radius: 16px; }
}
@media (max-width: 760px) {
  .mobile-menu.open { background: rgba(251, 251, 253, .985); }
  body.menu-open { overflow: hidden; }
  body.menu-open::after {
    content: "";
    position: fixed;
    inset: 50px 0 0;
    z-index: 70;
    background: rgba(0, 0, 0, .12);
    pointer-events: none;
  }
}
.mobile-menu.open { background: #fbfbfd; }
.bottom-nav .bn-icon { font-size: 18px; line-height: 1; filter: grayscale(1); opacity: .58; }
.bottom-nav a.active .bn-icon { opacity: 1; }
.bottom-nav a.active { color: var(--primary); }
/* Category navigation v3: compact, content-sized glass rail */
.category-pills.category-groups {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  width: max-content;
  max-width: 100%;
  gap: 2px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 999px;
  background: rgba(255, 255, 255, .64);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.96), 0 8px 24px rgba(0,0,0,.035);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
  backdrop-filter: blur(20px) saturate(145%);
}
.category-pills.category-groups .cat-group {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  padding: 0;
  border: 0;
}
.category-pills.category-groups .cat-children {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  padding: 0;
}
.category-pills.category-groups .cat-parent,
.category-pills.category-groups > .cat-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #424245;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
}
.category-pills.category-groups .cat-parent:hover,
.category-pills.category-groups > .cat-all:hover {
  border: 0;
  background: rgba(0, 0, 0, .045);
  color: var(--text);
  transform: none;
}
.category-pills.category-groups .cat-parent.active,
.category-pills.category-groups > .cat-all.active {
  border: 0;
  background: #1d1d1f;
  color: #fff;
  box-shadow: 0 5px 13px rgba(0,0,0,.12);
}
.category-pills.category-groups .cat-child {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--primary);
  font-size: 10.5px;
  font-weight: 500;
  white-space: nowrap;
}
.category-pills.category-groups .cat-child::before {
  content: "";
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  opacity: .55;
}
.category-pills.category-groups .cat-child:hover {
  border: 0;
  background: rgba(0, 113, 227, .07);
  color: var(--primary);
  transform: none;
}
.category-pills.category-groups .cat-child.active {
  border: 0;
  background: #1d1d1f;
  color: #fff;
}
.category-pills.category-groups .cat-count {
  min-width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .055);
  color: #86868b;
  font-size: 9px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.category-pills.category-groups .active .cat-count {
  background: rgba(255, 255, 255, .17);
  color: rgba(255, 255, 255, .8);
}

@media (max-width: 760px) {
  .category-pills.category-groups {
    flex-wrap: nowrap;
    width: max-content;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 5px;
    border-radius: 18px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }
  .category-pills.category-groups::-webkit-scrollbar { display: none; }
  .category-pills.category-groups .cat-group,
  .category-pills.category-groups .cat-children,
  .category-pills.category-groups .cat-parent,
  .category-pills.category-groups .cat-child,
  .category-pills.category-groups > .cat-all { flex: 0 0 auto; scroll-snap-align: start; }
  .category-pills.category-groups .cat-parent,
  .category-pills.category-groups > .cat-all { padding: 8px 12px; font-size: 11px; }
  .category-pills.category-groups .cat-child { padding: 8px 10px; font-size: 10px; }
}
.cover-fallback-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.42);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
/* Nested parent / child category groups */
.category-pills.category-groups .cat-group.has-children {
  gap: 0;
  margin: 1px 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(0, 113, 227, .045);
}
.category-pills.category-groups .cat-group.has-children .cat-parent {
  padding-right: 8px;
  color: #1d1d1f;
  font-weight: 600;
}
.category-pills.category-groups .cat-group.has-children .cat-children {
  position: relative;
  gap: 0;
  margin-left: 2px;
  padding-left: 7px;
}
.category-pills.category-groups .cat-group.has-children .cat-children::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 14px;
  border-radius: 1px;
  background: rgba(0, 0, 0, .1);
  transform: translateY(-50%);
}
.category-pills.category-groups .cat-group.has-children .cat-child {
  padding-left: 8px;
  padding-right: 10px;
}
.category-pills.category-groups .cat-group.has-children .cat-child::before {
  width: 3px;
  height: 3px;
  background: var(--primary);
  opacity: .7;
}
.category-pills.category-groups .cat-group.subtree-active {
  background: rgba(0, 113, 227, .085);
  box-shadow: inset 0 0 0 1px rgba(0, 113, 227, .05);
}
.category-pills.category-groups .cat-group.subtree-active .cat-parent {
  color: #0066cc;
}
.category-pills.category-groups .cat-group.subtree-active .cat-parent.active {
  color: #fff;
}
.category-pills.category-groups .cat-group.subtree-active .cat-child.active {
  background: #1d1d1f;
  color: #fff;
}

@media (max-width: 760px) {
  .category-pills.category-groups .cat-group.has-children { margin-inline: 2px; }
  .category-pills.category-groups .cat-group.has-children .cat-parent { padding-right: 7px; }
  .category-pills.category-groups .cat-group.has-children .cat-children { padding-left: 6px; }
  .category-pills.category-groups .cat-group.has-children .cat-child { padding-inline: 7px 8px; }
}
.category-pills.category-groups .cat-group.has-children {
  background: rgba(0, 0, 0, .035);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .025);
}
.category-pills.category-groups .cat-group.has-children .cat-child::before {
  content: "›";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1;
  opacity: .62;
}
.category-pills.category-groups .cat-group.has-children .cat-child.active::before {
  color: inherit;
  opacity: .75;
}
/* Collapsed parent → sliding child rail */
.category-pills.category-groups .cat-group.has-children {
  gap: 1px;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.category-pills.category-groups .cat-group.has-children .cat-parent {
  padding: 8px 13px;
  color: #424245;
  font-weight: 500;
}
.category-pills.category-groups .cat-group.has-children.subtree-active {
  background: transparent;
  box-shadow: none;
}
.category-pills.category-groups .cat-group.has-children.subtree-active .cat-parent {
  color: var(--primary);
}
.category-pills.category-groups .cat-group.has-children .cat-children {
  display: grid;
  grid-template-columns: 0fr;
  gap: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateX(-7px);
  pointer-events: none;
  transition: grid-template-columns .34s var(--ease), opacity .18s ease, transform .3s var(--ease);
}
.category-pills.category-groups .cat-group.has-children .cat-children::before { display: none; }
.category-pills.category-groups .cat-group.has-children .cat-children-track {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 0;
  overflow: hidden;
  padding-left: 4px;
}
.category-pills.category-groups .cat-group.has-children.expanded .cat-children {
  grid-template-columns: 1fr;
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}
.category-pills.category-groups .cat-group.has-children .cat-child {
  padding: 7px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 113, 227, .055);
  color: var(--primary);
  font-size: 10.5px;
}
.category-pills.category-groups .cat-group.has-children .cat-child:hover {
  background: rgba(0, 113, 227, .1);
  color: var(--primary);
}
.category-pills.category-groups .cat-group.has-children .cat-child.active {
  background: #1d1d1f;
  color: #fff;
}
.category-pills.category-groups .cat-group.has-children .cat-child-all {
  background: rgba(0, 0, 0, .045);
  color: #6e6e73;
}
.category-pills.category-groups .cat-group.has-children .cat-child-all:hover {
  background: rgba(0, 0, 0, .075);
  color: var(--text);
}
.category-pills.category-groups .cat-group.has-children .cat-child::before {
  content: "›";
  width: auto;
  height: auto;
  border-radius: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1;
  opacity: .62;
}
.category-pills.category-groups .cat-group.has-children .cat-child-all::before { display: none; }

@media (max-width: 760px) {
  .category-pills.category-groups .cat-group.has-children .cat-parent { padding: 8px 12px; }
  .category-pills.category-groups .cat-group.has-children .cat-child { padding: 7px 9px; }
}