html {
  min-height: 100%;
  background: #5aa8da;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #745782;
  font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  overflow-x: hidden;
  background:
    #5aa8da
    url("../images/xh/mobile-bg.jpg") center top / auto 100% no-repeat fixed;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-decoration: none;
}

.xh-mobile-page {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  padding: 0 6px 74px;
  overflow-x: hidden;
}

.xh-topbar {
  position: relative;
  width: 100%;
  min-height: 58px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(40, 55, 110, 0.25);
}

.xh-topbar .xh-user {
  position: absolute;
  left: 8px;
  top: 10px;
  padding-left: 8px;
  line-height: 1.45;
}

.xh-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 82px;
  height: 52px;
  margin: 0 auto;
  color: #26345f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 0;
}

.xh-logo::before {
  position: absolute;
  inset: 4px 10px;
  content: "";
  background: linear-gradient(145deg, rgba(243, 202, 231, 0.96), rgba(130, 162, 221, 0.82));
  clip-path: polygon(52% 0, 63% 34%, 100% 31%, 69% 51%, 80% 89%, 51% 64%, 19% 90%, 31% 52%, 0 31%, 39% 34%);
  transform: rotate(-12deg);
}

.xh-logo span {
  position: relative;
  z-index: 1;
}

.xh-top-actions {
  position: absolute;
  right: 48px;
  top: 19px;
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  white-space: nowrap;
  color: #fff;
}

.xh-top-center {
  position: absolute;
  left: 50%;
  top: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
  min-width: 0;
}

.xh-top-center .xh-logo {
  margin: 0;
}

.xh-refresh {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  margin-right: -10px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  border-radius: 50%;
}

.xh-panel {
  margin: 0 0 10px;
  padding: 12px 10px;
  border-radius: 14px;
  background: rgba(255, 250, 255, 0.95);
  box-shadow: 0 10px 26px rgba(71, 69, 139, 0.16);
  overflow: hidden;
}

.xh-tabs {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 30px;
  margin: -4px -10px 10px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(205, 185, 221, 0.55);
}

.xh-tab {
  position: relative;
  min-width: 48px;
  color: #9889a4;
  font-size: 14px;
}

.xh-tab.active {
  color: #74528b;
}

.xh-tab.active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  content: "";
  background: #8e65ad;
}

.xh-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 10px;
}

.xh-pill {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid rgba(180, 142, 204, 0.55);
  border-radius: 999px;
  color: #6d5f75;
  font-size: 12px;
  line-height: 1.2;
  background: rgba(255, 255, 255, 0.5);
}

.xh-badge-hot::after,
.xh-badge-new::after {
  position: absolute;
  right: -3px;
  top: -7px;
  min-width: 22px;
  height: 13px;
  border-radius: 9px;
  color: #fff;
  font-size: 8px;
  line-height: 13px;
  text-align: center;
  transform: scale(0.9);
}

.xh-badge-hot::after {
  content: "HOT";
  background: #e75391;
}

.xh-badge-new::after {
  content: "NEW";
  background: #36aee4;
}

.xh-category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 0 0 4px;
  scrollbar-width: none;
}

.xh-category-strip::-webkit-scrollbar {
  display: none;
}

.xh-category {
  position: relative;
  flex: 0 0 112px;
  height: 142px;
  border-radius: 13px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 8px 18px rgba(64, 74, 128, 0.18);
}

.xh-category span {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  display: grid;
  place-items: center;
  min-height: 44px;
  border-radius: 999px;
  color: #8b64a3;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  background: rgba(255, 249, 255, 0.94);
}

.xh-category small {
  display: block;
  font-size: 11px;
}

.xh-category-blockchain {
  background-image: url("../images/xh/cat-blockchain.png");
}

.xh-category-fishing {
  background-image: url("../images/xh/cat-fishing.png");
}

.xh-category-chess {
  background-image: url("../images/xh/cat-chess.png");
}

.xh-category-live {
  background-image: url("../images/xh/cat-live.png");
}

.xh-category-slot {
  background-image: url("../images/xh/cat-slot.png");
}

.xh-category-sport {
  background-image: url("../images/xh/cat-sport.png");
}

.xh-notice-panel {
  padding-bottom: 8px;
}

.xh-notice-list {
  display: grid;
  gap: 7px;
}

.xh-notice-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 26px;
  border-bottom: 1px solid rgba(214, 199, 224, 0.52);
  color: #6d5f75;
  font-size: 12px;
}

.xh-notice-row span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-notice-row em {
  color: #a893b7;
  font-size: 11px;
  font-style: normal;
}

.xh-banner {
  min-height: 160px;
  margin-top: 10px;
  border-radius: 0;
  background:
    radial-gradient(circle at 72% 42%, rgba(255, 226, 77, 0.85) 0 20px, transparent 22px),
    radial-gradient(circle at 82% 52%, rgba(222, 149, 255, 0.6) 0 34px, transparent 36px),
    linear-gradient(135deg, rgba(237, 239, 255, 0.96), rgba(227, 186, 246, 0.85));
  box-shadow: 0 8px 18px rgba(64, 74, 128, 0.12);
}

.xh-banner h3 {
  margin: 0;
  padding: 34px 18px 8px;
  color: #8e63b0;
  font-size: 21px;
  line-height: 1.2;
}

.xh-banner p {
  margin: 0;
  padding: 0 18px;
  color: #9d7fb0;
  font-size: 13px;
}

.xh-action-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 9px;
  border-radius: 6px;
  background: rgba(255, 250, 255, 0.94);
  box-shadow: 0 8px 20px rgba(64, 74, 128, 0.12);
  overflow: hidden;
}

.xh-action-row a {
  display: grid;
  place-items: center;
  min-height: 38px;
  color: #9c76b5;
  font-size: 13px;
  font-weight: 700;
}

.xh-action-row a + a {
  border-left: 1px solid rgba(214, 199, 224, 0.65);
}

.xh-section-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 -10px 11px;
  border-bottom: 1px solid rgba(205, 185, 221, 0.55);
}

.xh-section-tabs button,
.xh-section-tabs a {
  position: relative;
  height: 36px;
  border: 0;
  color: #9c8aa8;
  font: inherit;
  font-size: 13px;
  background: transparent;
}

.xh-section-tabs .active {
  color: #74528b;
}

.xh-section-tabs .active::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  content: "";
  background: #8e65ad;
}

.xh-section-tabs.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.xh-panel-page {
  display: none;
}

.xh-panel-page.active {
  display: block;
}

.xh-menu-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px 12px;
}

.xh-menu-grid a {
  display: grid;
  place-items: center;
  min-height: 31px;
  padding: 0 8px;
  border: 1px solid rgba(203, 171, 219, 0.55);
  border-radius: 999px;
  color: #77617f;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.56);
}

.xh-searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  margin: 0 0 9px;
  padding: 0 14px;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.55);
}

.xh-searchbar svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.xh-searchbar input {
  width: 100%;
  min-width: 0;
  border: 0;
  color: #765d85;
  font-size: 13px;
  outline: none;
  background: transparent;
}

.xh-searchbar input::placeholder {
  color: rgba(255, 255, 255, 0.92);
}

.xh-filter-block {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.xh-filter-row {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 8px;
  color: #7b6f83;
  font-size: 12px;
}

.xh-filter-row strong {
  font-weight: 500;
}

.xh-filter-chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.xh-filter-chips a,
.xh-filter-chips span {
  display: grid;
  place-items: center;
  min-height: 23px;
  border: 1px solid rgba(202, 173, 219, 0.7);
  border-radius: 999px;
  color: #8c7699;
  background: rgba(255, 255, 255, 0.74);
}

.xh-filter-chips .active {
  color: #fff;
  background: #a486cc;
}

.xh-game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px 14px;
}

.xh-game-card {
  display: block;
  min-width: 0;
  color: #7c6289;
  font-size: 12px;
  text-align: center;
}

.xh-game-thumb {
  position: relative;
  height: 104px;
  margin-bottom: 5px;
  border-radius: 3px;
  background:
    radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.94) 0 11px, transparent 12px),
    linear-gradient(135deg, #f0b5dc, #8467c9);
  overflow: hidden;
}

.xh-game-thumb::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.76) 0 18px, transparent 20px),
    radial-gradient(circle at 68% 66%, rgba(255, 215, 91, 0.76) 0 24px, transparent 26px),
    linear-gradient(145deg, transparent 0 45%, rgba(255, 255, 255, 0.25) 46% 55%, transparent 56%);
}

.xh-game-thumb::after {
  position: absolute;
  right: 5px;
  bottom: 5px;
  content: "PG";
  color: #191919;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -1px;
}

.xh-game-card:nth-child(2n) .xh-game-thumb {
  background: linear-gradient(135deg, #8df2ff, #c748c8);
}

.xh-game-card:nth-child(3n) .xh-game-thumb {
  background: linear-gradient(135deg, #ffe08a, #b36ee3);
}

.xh-game-card:nth-child(4n) .xh-game-thumb {
  background: linear-gradient(135deg, #70d8df, #7348bb);
}

.xh-game-card:nth-child(5n) .xh-game-thumb {
  background: linear-gradient(135deg, #ffd85b, #e762b0);
}

.xh-game-card span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-game-card small {
  display: block;
  min-height: 13px;
  overflow: hidden;
  color: #a893b7;
  font-size: 10px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-lottery-thumb {
  display: grid;
  place-items: center;
}

.xh-lottery-thumb img {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.xh-page-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin: 0 0 10px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(40, 55, 110, 0.25);
}

.xh-back {
  position: absolute;
  left: 14px;
  color: #fff;
  font-size: 22px;
}

.xh-list {
  display: grid;
  gap: 9px;
}

.xh-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 45px;
  padding: 9px 12px;
  border-radius: 8px;
  color: #735c82;
  background: rgba(255, 250, 255, 0.96);
  box-shadow: 0 8px 18px rgba(64, 74, 128, 0.1);
}

.xh-list-row strong {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-list-row small,
.xh-list-row em {
  display: block;
  margin-top: 3px;
  color: #a893b7;
  font-size: 11px;
  font-style: normal;
}

.xh-arrow {
  color: #b08ac8;
  font-size: 17px;
}

.xh-form {
  display: grid;
  gap: 10px;
}

.xh-form-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  color: #735c82;
  background: rgba(255, 250, 255, 0.96);
}

.xh-form-row label,
.xh-form-row span:first-child {
  color: #8b7697;
  font-size: 13px;
}

.xh-form-row input,
.xh-form-row select {
  width: 100%;
  min-width: 0;
  border: 0;
  color: #735c82;
  font-size: 13px;
  outline: none;
  background: transparent;
}

.xh-primary-btn {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: #a486cc;
  box-shadow: 0 8px 18px rgba(104, 76, 142, 0.22);
}

.xh-primary-btn-disabled {
  color: rgba(255, 255, 255, 0.9);
  background: #c3b4d4;
  box-shadow: none;
}

.xh-muted-note {
  margin: 10px 4px 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.6;
}

.xh-stats-hero {
  margin-bottom: 10px;
  padding: 20px 14px;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  background: rgba(164, 134, 204, 0.72);
  box-shadow: 0 10px 24px rgba(64, 74, 128, 0.14);
}

.xh-stats-hero strong {
  display: block;
  margin: 6px 0;
  font-size: 30px;
  line-height: 1.1;
}

.xh-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xh-stat-card {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 8px 4px;
  border-radius: 8px;
  color: #735c82;
  text-align: center;
  background: rgba(255, 250, 255, 0.95);
}

.xh-stat-card strong {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #8e65ad;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-stat-card span {
  margin-top: 4px;
  color: #9c8aa8;
  font-size: 12px;
}

.xh-download-hero {
  padding: 24px 16px;
  border-radius: 12px;
  color: #755888;
  text-align: center;
  background:
    radial-gradient(circle at 80% 22%, rgba(255, 255, 255, 0.8) 0 26px, transparent 28px),
    linear-gradient(150deg, rgba(255, 250, 255, 0.98), rgba(229, 209, 245, 0.94));
}

.xh-download-hero h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.xh-download-actions {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.xh-client-download-page {
  padding: 0 9px 96px;
}

.xh-client-download-page .xh-page-title {
  min-height: 45px;
  margin: 0;
  font-size: 15px;
}

.xh-client-download-page .xh-back {
  left: 13px;
  top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}

.xh-client-download-card {
  overflow: hidden;
  border-radius: 7px;
  background: rgba(255, 251, 255, 0.96);
  box-shadow: 0 8px 20px rgba(70, 64, 128, 0.12);
}

.xh-client-download-title {
  display: grid;
  place-items: center;
  height: 37px;
  border-bottom: 2px solid rgba(125, 92, 154, 0.92);
  color: #7f5c91;
  font-size: 14px;
}

.xh-client-download-body {
  min-height: 670px;
  padding: 26px 10px 23px;
  background: linear-gradient(90deg, rgba(238, 226, 248, 0.5), rgba(255, 255, 255, 0.96) 45%);
}

.xh-client-download-qr {
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  margin: 0 auto 17px;
  padding: 8px;
  border: 2px solid rgba(220, 192, 159, 0.75);
  background: #fff;
}

.xh-client-download-qr img {
  display: block;
  width: 132px;
  height: 132px;
  image-rendering: pixelated;
  object-fit: contain;
}

.xh-client-download-body h2 {
  margin: 0 0 8px;
  color: #875b9b;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}

.xh-client-download-steps {
  margin: 0;
  padding: 0;
  color: #786985;
  font-size: 13px;
  line-height: 1.55;
  list-style-position: inside;
}

.xh-client-download-divider {
  height: 4px;
  margin: 21px 0 29px;
  background: rgba(168, 123, 188, 0.18);
}

.xh-activity-page,
.xh-notice-detail-page {
  padding: 0 8px 74px;
}

.xh-activity-page .xh-page-title,
.xh-notice-detail-page .xh-page-title {
  min-height: 45px;
  margin-bottom: 0;
}

.xh-activity-page .xh-back,
.xh-notice-detail-page .xh-back {
  left: 13px;
  top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}

.xh-activity-banner {
  overflow: hidden;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(255, 250, 255, 0.72);
  box-shadow: 0 8px 18px rgba(71, 69, 139, 0.12);
}

.xh-activity-banner img {
  display: block;
  width: 100%;
  min-height: 92px;
  object-fit: cover;
}

.xh-activity-summary {
  display: grid;
  gap: 8px;
  padding: 10px;
}

.xh-activity-summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 37px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(246, 237, 250, 0.78);
}

.xh-activity-summary-row span {
  color: #8b7598;
  font-size: 13px;
}

.xh-activity-summary-row strong {
  max-width: 160px;
  overflow: hidden;
  color: #8e65ad;
  font-size: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-activity-action {
  margin: 0 0 10px;
}

.xh-activity-section {
  margin-bottom: 10px;
}

.xh-activity-section h2 {
  margin: 0 0 10px;
  color: #755888;
  font-size: 15px;
  font-weight: 700;
}

.xh-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.xh-data-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  color: #735c82;
  font-size: 12px;
  text-align: center;
}

.xh-data-table th,
.xh-data-table td {
  padding: 9px 8px;
  border: 1px solid rgba(200, 179, 216, 0.52);
  white-space: nowrap;
}

.xh-data-table th {
  color: #7b5c8e;
  font-weight: 700;
  background: rgba(238, 229, 244, 0.94);
}

.xh-data-table td {
  background: rgba(255, 255, 255, 0.72);
}

.xh-status-success {
  color: #47a969;
}

.xh-status-danger {
  color: #d85a67;
}

.xh-status-muted {
  color: #8f8797;
}

.xh-pages {
  margin-top: 10px;
  color: #8b7598;
  font-size: 12px;
  text-align: center;
}

.xh-notice-detail-card {
  padding: 0;
}

.xh-notice-detail-head {
  padding: 16px 14px 12px;
  border-bottom: 1px solid rgba(203, 183, 218, 0.58);
  text-align: center;
}

.xh-notice-detail-head h1 {
  margin: 0 0 7px;
  color: #735184;
  font-size: 17px;
  line-height: 1.45;
}

.xh-notice-detail-head time {
  color: #a18daa;
  font-size: 12px;
}

.xh-notice-detail-body {
  min-height: 220px;
  padding: 14px;
  word-break: break-word;
}

.xh-notice-detail-body img {
  max-width: 100%;
  height: auto;
}

.xh-richtext {
  color: #735c82;
  font-size: 13px;
  line-height: 1.7;
}

.xh-form .mar-lr20,
.xh-form #paylinebankbox {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.xh-form .mar-lr20 li,
.xh-form #paylinebankbox li {
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 8px;
  color: #735c82;
  background: rgba(255, 250, 255, 0.96);
}

.xh-form .item-content,
.xh-form .item-inner {
  display: grid;
  gap: 6px;
}

.xh-form .item-title {
  color: #8b7697;
  font-size: 13px;
}

.xh-form .item-input {
  color: #735c82;
  font-size: 13px;
}

.xh-form .item-input img {
  max-width: 100%;
  border-radius: 8px;
}

.xh-details {
  border-radius: 8px;
  color: #735c82;
  background: rgba(255, 250, 255, 0.96);
  overflow: hidden;
}

.xh-details + .xh-details {
  margin-top: 9px;
}

.xh-details summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 44px;
  padding: 10px 12px;
  cursor: pointer;
  list-style: none;
}

.xh-details summary::-webkit-details-marker {
  display: none;
}

.xh-details summary::after {
  content: "›";
  color: #b08ac8;
  font-size: 18px;
}

.xh-details[open] summary::after {
  transform: rotate(90deg);
}

.xh-details-body {
  padding: 0 12px 12px;
  color: #806a8b;
  font-size: 12px;
  line-height: 1.7;
}

.xh-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: var(--xh-visual-width, 100vw);
  max-width: none;
  height: 55px;
  border-top: 1px solid rgba(225, 211, 232, 0.9);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 -8px 24px rgba(64, 74, 128, 0.08);
}

.xh-bottom-nav a {
  display: grid;
  place-items: center;
  gap: 1px;
  min-width: 0;
  color: #a282bf;
  font-size: 11px;
  line-height: 1;
}

.xh-bottom-nav a.active {
  color: #b4488c;
}

.xh-nav-svg {
  display: block;
  width: 24px;
  height: 24px;
  color: currentColor;
  shape-rendering: geometricPrecision;
}

.xh-nav-icon {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
}

.xh-nav-home::before,
.xh-nav-home::after,
.xh-nav-dice::before,
.xh-nav-cup::before,
.xh-nav-chat::before,
.xh-nav-user::before {
  position: absolute;
  content: "";
  background: currentColor;
}

.xh-nav-home::before {
  left: 3px;
  top: 9px;
  width: 18px;
  height: 13px;
}

.xh-nav-home::after {
  left: 2px;
  top: 2px;
  width: 20px;
  height: 20px;
  clip-path: polygon(50% 0, 100% 48%, 84% 48%, 84% 100%, 16% 100%, 16% 48%, 0 48%);
}

.xh-nav-dice::before {
  inset: 4px;
  border-radius: 5px;
  box-shadow: inset 7px 7px 0 rgba(255, 255, 255, 0.75), inset -7px -7px 0 rgba(255, 255, 255, 0.42);
  transform: rotate(-20deg);
}

.xh-nav-cup::before {
  left: 6px;
  top: 5px;
  width: 13px;
  height: 15px;
  border-radius: 4px 4px 8px 8px;
  box-shadow: -5px 3px 0 -2px currentColor, 5px 3px 0 -2px currentColor;
}

.xh-nav-chat::before {
  inset: 5px 3px 6px;
  border-radius: 50%;
}

.xh-nav-chat::after {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 9px;
  height: 8px;
  content: "";
  background: currentColor;
  clip-path: polygon(0 0, 100% 100%, 16% 70%);
}

.xh-nav-user::before {
  left: 7px;
  top: 3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 11px 0 6px currentColor;
}

.xh-auth-page {
  min-height: 100vh;
  padding: 24px 20px 24px;
  color: #8c69aa;
  background:
    linear-gradient(180deg, rgba(89, 176, 221, 0.08), rgba(93, 51, 133, 0.12)),
    url("../images/xh/mobile-bg.jpg") center top / auto 100% no-repeat fixed;
}

.xh-auth-logo {
  margin: 6px auto 40px;
}

.xh-register-page .xh-auth-logo {
  margin-bottom: 26px;
}

.xh-login-card,
.xh-download-card {
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(61, 62, 122, 0.18);
  overflow: hidden;
}

.xh-login-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid rgba(207, 190, 222, 0.62);
}

.xh-login-tabs-single {
  grid-template-columns: 1fr;
}

.xh-login-tabs span {
  display: grid;
  place-items: center;
  height: 42px;
  background: rgba(239, 235, 249, 0.8);
  color: #a68fc3;
  font-size: 14px;
}

.xh-login-tabs .active {
  background: rgba(255, 255, 255, 0.96);
  color: #8f66b0;
  border-bottom: 2px solid #c456a8;
}

.xh-login-form {
  padding: 18px 20px 18px;
}

.xh-register-form {
  padding-bottom: 16px;
}

.xh-auth-note {
  margin: 0 0 13px;
  padding: 9px 12px;
  border-radius: 999px;
  color: #8f66b0;
  font-size: 12px;
  line-height: 1.4;
  background: rgba(239, 232, 247, 0.82);
}

.xh-field {
  position: relative;
  margin-bottom: 13px;
}

.xh-field input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(190, 158, 214, 0.48);
  border-radius: 999px;
  padding: 0 42px;
  color: #71547f;
  outline: none;
  background: rgba(255, 255, 255, 0.88);
}

.xh-field input:focus {
  border-color: #a986cc;
  box-shadow: 0 0 0 3px rgba(169, 134, 204, 0.14);
}

.xh-field::before {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 15px;
  height: 15px;
  content: "";
  border: 1.8px solid #b999d6;
  transform: translateY(-50%);
}

.xh-field-user::before {
  border-radius: 50%;
  box-shadow: 0 10px 0 -5px #b999d6;
}

.xh-field-pass::before {
  width: 13px;
  height: 11px;
  border-radius: 3px;
}

.xh-field-pass::after {
  position: absolute;
  left: 19px;
  top: 9px;
  width: 8px;
  height: 8px;
  content: "";
  border: 1.8px solid #b999d6;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.xh-field-code {
  display: flex;
  align-items: center;
}

.xh-field-code input {
  padding-right: 118px;
}

.xh-captcha {
  position: absolute;
  right: 8px;
  top: 5px;
  width: 96px;
  height: 26px;
  border-radius: 4px;
  object-fit: cover;
}

.xh-submit {
  width: 100%;
  height: 39px;
  margin-top: 8px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  background: #a486cc;
}

.xh-login-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: #a282bf;
  font-size: 13px;
}

.xh-login-row label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.xh-login-row input {
  accent-color: #a486cc;
}

.xh-auth-links {
  display: flex;
  justify-content: space-between;
  margin: 12px 0 18px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.xh-auth-mini-links {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  color: #9b78bd;
  font-size: 13px;
}

.xh-download-card {
  margin-top: 18px;
  padding: 18px 0 14px;
  text-align: center;
}

.xh-download-card h3 {
  margin: 0 0 16px;
  color: #b78ac3;
  font-size: 13px;
  font-weight: 500;
}

.xh-download-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.xh-download-options a {
  display: grid;
  place-items: center;
  gap: 6px;
  color: #a486cc;
  font-size: 13px;
  font-weight: 700;
}

.xh-system-icon {
  width: 32px;
  height: 32px;
  background-image: url("../images/xh/auth-icon-set.png");
  background-repeat: no-repeat;
  background-size: 500px 768px;
}

.xh-ios-icon {
  background-position: -72px -46px;
}

.xh-android-icon {
  background-position: -133px -44px;
}

.xh-auth-footer {
  margin-top: 20px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 1px 2px rgba(51, 54, 104, 0.24);
}

.xh-profile-card {
  margin-bottom: 10px;
  padding: 18px 10px 12px;
  border-radius: 7px;
  color: #84679a;
  background: rgba(255, 250, 255, 0.96);
  box-shadow: 0 10px 24px rgba(79, 64, 132, 0.18);
}

.xh-avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e8d4ff, #b58bd0);
  overflow: hidden;
}

.xh-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xh-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  row-gap: 9px;
  border-bottom: 1px solid rgba(188, 165, 207, 0.38);
  padding-bottom: 4px;
}

.xh-profile-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
  font-size: 13px;
}

.xh-profile-grid .right {
  text-align: right;
}

.xh-profile-grid span {
  color: #80698f;
}

.xh-profile-grid strong,
.xh-profile-grid a {
  color: #9c74bd;
  font-weight: 600;
}

.xh-setting-panel h2,
.xh-contact-panel h2,
.xh-tip-panel h2 {
  margin: 0 0 9px;
  color: #80698f;
  font-size: 13px;
  font-weight: 500;
}

.xh-setting-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 40px;
  border-bottom: 1px solid rgba(188, 165, 207, 0.32);
  color: #80698f;
  font-size: 13px;
}

.xh-setting-row:last-child {
  border-bottom: 0;
}

.xh-setting-row em {
  color: #b79aca;
  font-size: 22px;
  font-style: normal;
}

.xh-switch {
  min-width: 62px;
  height: 27px;
  border: 1px solid rgba(186, 151, 211, 0.56);
  border-radius: 999px;
  color: #8b69a8;
  background: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.xh-switch[aria-pressed="true"] {
  color: #fff;
  background: #a57fcb;
}

.xh-login-log {
  padding: 0;
}

.xh-log-head,
.xh-log-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  min-height: 41px;
  color: #80698f;
  font-size: 12px;
  text-align: center;
}

.xh-log-head {
  background: rgba(237, 224, 242, 0.82);
}

.xh-log-row {
  padding: 10px 8px;
  line-height: 1.55;
}

.xh-bank-modal {
  margin: 0 12px 10px;
  padding: 0 18px 16px;
  border-radius: 8px;
  color: #8a6a9e;
  background: rgba(251, 244, 253, 0.98);
  box-shadow: 0 18px 34px rgba(64, 49, 112, 0.22);
}

.xh-bank-page {
  padding: 0 7px 74px;
}

.xh-bank-page .xh-page-title {
  min-height: 50px;
  margin-bottom: 0;
}

.xh-bank-page .xh-back {
  left: 14px;
  top: 9px;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}

.xh-bank-bind-card {
  margin: 0 4px 10px;
  padding: 16px 18px 18px;
}

.xh-modal-title {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  height: 48px;
  border-bottom: 1px solid rgba(199, 178, 216, 0.45);
  color: #9d71bd;
  font-size: 15px;
  text-align: center;
}

.xh-modal-title span {
  padding-left: 22px;
}

.xh-modal-title a {
  color: #b89bd0;
  font-size: 19px;
}

.xh-bank-form {
  gap: 8px;
  padding-top: 10px;
}

.xh-bank-field {
  display: grid;
  gap: 5px;
}

.xh-bank-field label,
.xh-bank-field span {
  color: #8f789d;
  font-size: 13px;
}

.xh-bank-field input,
.xh-bank-field select,
.xh-transfer-form input {
  width: 100%;
  min-height: 30px;
  border: 1px solid rgba(189, 160, 214, 0.42);
  border-radius: 999px;
  padding: 0 13px;
  color: #78558c;
  outline: none;
  background: rgba(255, 255, 255, 0.74);
}

.xh-bank-field select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #a486cc 50%) right 17px center / 7px 7px no-repeat,
    linear-gradient(135deg, #a486cc 50%, transparent 50%) right 12px center / 7px 7px no-repeat,
    rgba(255, 255, 255, 0.74);
}

.xh-bank-field input:focus,
.xh-bank-field select:focus,
.xh-transfer-form input:focus {
  border-color: #a57fcb;
  box-shadow: 0 0 0 3px rgba(165, 127, 203, 0.14);
}

.xh-bank-field small,
.xh-form-hint {
  color: #35a7e7;
  font-size: 12px;
  line-height: 1.35;
}

.xh-bank-tips {
  margin: 9px 11px 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  line-height: 1.6;
}

.xh-bank-tips p {
  margin: 4px 0;
}

.xh-security-page {
  padding: 0 7px 74px;
}

.xh-security-page .xh-page-title {
  min-height: 50px;
  margin-bottom: 0;
}

.xh-security-page .xh-back {
  left: 14px;
  top: 9px;
  font-size: 30px;
  line-height: 1;
  font-weight: 300;
}

.xh-security-card {
  width: 100%;
  margin: 0 auto;
  padding: 12px 18px 19px;
  border-radius: 6px;
  background: rgba(255, 250, 255, 0.96);
  box-shadow: 0 8px 22px rgba(71, 68, 128, 0.12);
}

.xh-security-form {
  display: grid;
  gap: 11px;
}

.xh-auth-flow-page {
  padding-bottom: 28px;
}

.xh-security-field {
  display: grid;
  gap: 6px;
}

.xh-security-field span {
  color: #81638b;
  font-size: 14px;
  line-height: 1.15;
}

.xh-security-field input {
  width: 100%;
  height: 30px;
  border: 1px solid rgba(190, 157, 214, 0.46);
  border-radius: 999px;
  padding: 0 14px;
  color: #755180;
  font-size: 13px;
  outline: none;
  background: rgba(255, 255, 255, 0.74);
}

.xh-security-field input::placeholder {
  color: rgba(126, 99, 136, 0.72);
}

.xh-security-field input:focus {
  border-color: #a786cc;
  box-shadow: 0 0 0 3px rgba(167, 134, 204, 0.13);
}

.xh-security-link {
  justify-self: end;
  margin-top: -2px;
  color: #9b78bd;
  font-size: 12px;
}

.xh-security-submit {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 36px;
  margin-top: 22px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  background: #a486cc;
  box-shadow: 0 8px 17px rgba(109, 80, 145, 0.2);
}

.xh-auth-choice {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.xh-auth-choice label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 32px;
  border: 1px solid rgba(190, 157, 214, 0.46);
  border-radius: 999px;
  color: #8c6b9a;
  font-size: 13px;
  background: rgba(255, 255, 255, 0.68);
}

.xh-auth-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.xh-auth-choice .active {
  border-color: #a486cc;
  color: #fff;
  background: #a486cc;
  box-shadow: 0 6px 14px rgba(109, 80, 145, 0.16);
}

.xh-inline-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 6px;
}

.xh-secondary-btn {
  display: grid;
  place-items: center;
  min-height: 38px;
  border: 1px solid rgba(172, 132, 203, 0.55);
  border-radius: 999px;
  color: #a57fcb;
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.64);
}

.xh-wallet-center {
  margin-bottom: 10px;
  padding: 14px 14px 0;
  border-radius: 7px 7px 0 0;
  color: #856b96;
  background: rgba(255, 246, 251, 0.94);
}

.xh-wallet-center > span {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
}

.xh-wallet-main {
  position: relative;
  display: grid;
  place-items: center;
  gap: 2px;
  min-height: 56px;
  border-radius: 999px;
  color: #fff;
  background: #a13d91;
}

.xh-wallet-main strong {
  font-size: 13px;
  font-weight: 500;
}

.xh-wallet-main em {
  font-size: 18px;
  font-style: normal;
}

.xh-wallet-main b {
  position: absolute;
  top: 0;
  right: 16px;
  padding: 4px 8px;
  border-radius: 0 0 9px 9px;
  background: #f1c34b;
  color: #fff;
  font-size: 10px;
}

.xh-wallet-actions {
  display: flex;
  justify-content: center;
  gap: 34px;
  min-height: 42px;
  align-items: center;
}

.xh-wallet-actions a {
  color: #a486cc;
  font-size: 13px;
}

.xh-transfer-wallets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 14px 14px;
}

.xh-transfer-wallets button {
  min-height: 47px;
  border: 1px solid rgba(188, 160, 215, 0.42);
  border-radius: 999px;
  color: #8d6da6;
  background: rgba(255, 255, 255, 0.7);
}

.xh-transfer-wallets .active {
  color: #fff;
  background: #a13d91;
}

.xh-transfer-wallets span,
.xh-transfer-wallets small {
  display: block;
}

.xh-transfer-form {
  display: grid;
  gap: 11px;
}

.xh-transfer-form label {
  color: #80698f;
  font-size: 13px;
}

.xh-transfer-direction {
  display: flex;
  justify-content: center;
  gap: 8px;
  color: #8c6da3;
  font-size: 13px;
}

.xh-tip-panel p {
  margin: 0 0 8px;
  color: #8e779d;
  font-size: 12px;
  line-height: 1.55;
}

.xh-dev-card {
  display: grid;
  gap: 12px;
  margin: 18px 8px 0;
  padding: 26px 18px;
  border-radius: 9px;
  color: #87699b;
  text-align: center;
  background: rgba(255, 250, 255, 0.96);
}

.xh-dev-card strong {
  font-size: 16px;
}

.xh-dev-card p {
  margin: 0;
  color: #a28ab1;
  font-size: 13px;
  line-height: 1.6;
}

.xh-recharge-choice-page,
.xh-usdt-page {
  padding: 0 4px 74px;
}

.xh-recharge-title {
  min-height: 52px;
  margin: 0;
  background: rgba(111, 164, 226, 0.72);
}

.xh-recharge-title .xh-back {
  left: 19px;
  top: 9px;
  font-size: 31px;
  line-height: 1;
  font-weight: 300;
}

.xh-recharge-methods {
  display: grid;
  gap: 15px;
}

.xh-recharge-method {
  position: relative;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 18px;
  grid-template-areas:
    "icon title arrow"
    "icon desc arrow";
  align-items: center;
  min-height: 73px;
  padding: 10px 20px 10px 21px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 0 rgba(111, 164, 226, 0.34);
}

.xh-pay-mosaic {
  grid-area: icon;
  display: grid;
  grid-template-columns: repeat(2, 14px);
  grid-template-rows: repeat(2, 14px);
  gap: 4px;
  width: 32px;
  height: 32px;
}

.xh-pay-mosaic span {
  border-radius: 3px;
}

.xh-pay-mosaic span:nth-child(1) {
  background: #11a35f;
}

.xh-pay-mosaic span:nth-child(2) {
  background: #e84d3d;
}

.xh-pay-mosaic span:nth-child(3) {
  background: #1c6d9c;
}

.xh-pay-mosaic span:nth-child(4) {
  background: #df8b26;
}

.xh-recharge-method strong {
  grid-area: title;
  color: #111;
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
}

.xh-recharge-method small {
  grid-area: desc;
  margin-top: 6px;
  color: #777;
  font-size: 14px;
  line-height: 1.1;
}

.xh-recharge-method em {
  grid-area: arrow;
  color: #999;
  font-size: 35px;
  font-style: normal;
  font-weight: 200;
  line-height: 1;
}

.xh-usdt-form {
  display: block;
}

.xh-usdt-rate {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 87px;
  padding: 17px 28px;
  color: #7f5c96;
  font-size: 15px;
  font-weight: 700;
  background: rgba(65, 139, 199, 0.22);
}

.xh-usdt-rate em {
  color: #a489c8;
  font-style: normal;
  font-size: 13px;
}

.xh-recharge-table {
  border-top: 1px solid rgba(196, 196, 196, 0.85);
  border-bottom: 1px solid rgba(196, 196, 196, 0.85);
  background: rgba(255, 255, 255, 0.98);
}

.xh-recharge-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  min-height: 39px;
  padding: 0 20px 0 28px;
  border-bottom: 1px solid rgba(214, 214, 214, 0.88);
  color: #7b6290;
  font-size: 13px;
}

.xh-recharge-row:last-child {
  border-bottom: 0;
}

.xh-recharge-row span {
  color: #866a9a;
}

.xh-recharge-row strong {
  min-width: 0;
  overflow: hidden;
  color: #6f557f;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-address-row strong {
  color: #a489c8;
}

.xh-recharge-row input[type="number"],
.xh-recharge-row input[type="text"] {
  width: 100%;
  min-width: 0;
  height: 28px;
  border: 0;
  color: #6f557f;
  outline: none;
  background: transparent;
}

.xh-recharge-row input::placeholder {
  color: #9b89aa;
}

.xh-copy-btn {
  min-width: 36px;
  height: 28px;
  border: 0;
  color: #a489c8;
  font-size: 13px;
  background: transparent;
}

.xh-file-row {
  grid-template-columns: 96px minmax(0, 1fr);
}

.xh-file-row input[type="file"] {
  width: 100%;
  min-width: 0;
  color: #333;
  font-size: 12px;
}

.xh-danger-submit {
  display: block;
  width: calc(100% - 44px);
  height: 41px;
  margin: 39px auto 0;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  background: #a489c8;
  box-shadow: 0 8px 18px rgba(104, 76, 142, 0.22);
}

.xh-danger-submit:disabled {
  opacity: 0.68;
}

.xh-bindcard-page {
  padding: 0 6px 74px;
}

.xh-bindcard-title {
  min-height: 52px;
  margin: 0;
}

.xh-bindcard-title .xh-back-svg {
  left: 4px;
  top: 4px;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  font-size: 0;
  line-height: 1;
}

.xh-bindcard-title .xh-back-svg svg {
  width: 32px;
  height: 32px;
  color: #fff;
}

.xh-bindcard-profile {
  margin-bottom: 8px;
}

.xh-bindcard-profile .xh-avatar {
  margin-bottom: 14px;
}

.xh-bindcard-profile .xh-profile-grid a {
  display: inline-grid;
  place-items: center;
  width: 25px;
  height: 25px;
  color: #a489c8;
}

.xh-bindcard-profile .xh-profile-grid a svg {
  width: 19px;
  height: 19px;
}

.xh-bindcard-panel {
  --xh-bank-card-width: 266px;
  overflow: hidden;
  margin: 0;
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(252, 244, 255, 0.96) 0%, rgba(255, 252, 255, 0.98) 48%, rgba(255, 255, 255, 0.96) 100%);
  box-shadow: 0 8px 20px rgba(64, 74, 128, 0.14);
}

.xh-bindcard-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 56px;
  border-bottom: 1px solid rgba(169, 141, 194, 0.28);
}

.xh-bindcard-tabs a,
.xh-bindcard-tabs span {
  position: relative;
  display: grid;
  place-items: center;
  color: #9787a2;
  font-size: 13px;
  line-height: 1.25;
  text-align: center;
}

.xh-bindcard-tabs small {
  display: block;
  font-size: 12px;
}

.xh-bindcard-tabs .active {
  color: #76548b;
  font-weight: 700;
}

.xh-bindcard-tabs .active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  background: #76548b;
}

.xh-bank-card-stack {
  display: grid;
  justify-items: center;
  gap: 0;
  padding: 26px 0 27px;
}

.xh-bank-card {
  position: relative;
  display: grid;
  align-content: space-between;
  width: var(--xh-bank-card-width);
  max-width: calc(100vw - 72px);
  min-height: 188px;
  margin: 0 auto;
  padding: 18px 22px 20px;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #a872ba 0%, #8f609b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 10px 22px rgba(97, 63, 126, 0.16);
}

.xh-bank-card strong {
  display: block;
  overflow: hidden;
  max-width: 190px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-bank-card b {
  display: block;
  margin: 13px 0 22px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: 1px;
  word-break: break-word;
}

.xh-bank-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.65;
}

.xh-bank-default {
  position: absolute;
  top: 13px;
  right: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-style: normal;
  font-weight: 600;
}

.xh-bank-add-card,
.xh-bindcard-empty {
  display: grid;
  place-items: center;
  width: var(--xh-bank-card-width);
  max-width: calc(100vw - 72px);
  min-height: 174px;
  margin: 38px auto 0;
  border: 1px dashed rgba(164, 137, 200, 0.56);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.26);
}

.xh-bank-add-card span {
  display: grid;
  place-items: center;
  min-width: 138px;
  min-height: 32px;
  padding: 0 20px;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  background: #a489c8;
  box-shadow: 0 8px 18px rgba(104, 76, 142, 0.18);
}

.xh-bindcard-empty {
  min-height: 64px;
  margin-top: 0;
  color: #9b82b7;
  font-size: 13px;
}

.xh-bindcard-tips {
  padding: 0 4px 14px;
  color: #8f7a9d;
}

.xh-bindcard-tips h2 {
  margin: 0 0 14px;
  color: #8a759a;
  font-size: 12px;
  font-weight: 700;
}

.xh-bindcard-tips p {
  margin: 0 0 9px;
  font-size: 12px;
  line-height: 1.65;
}

/* unified mobile back button */
.xh-page-title .xh-back {
  position: absolute;
  left: 4px !important;
  top: 50% !important;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  color: #fff;
  font-size: 0 !important;
  line-height: 1 !important;
  text-shadow: none;
  transform: translateY(-50%);
}

.xh-page-title .xh-back::before {
  display: block;
  width: 18px;
  height: 18px;
  border: 0 solid currentColor;
  border-bottom-width: 3px;
  border-left-width: 3px;
  border-radius: 2px;
  content: "";
  transform: rotate(45deg);
}

.xh-page-title .xh-back > svg {
  display: none;
}

@media (max-width: 360px) {
  .xh-bindcard-panel {
    --xh-bank-card-width: 248px;
  }

  .xh-bank-card,
  .xh-bank-add-card,
  .xh-bindcard-empty {
    max-width: calc(100vw - 72px);
  }

  .xh-bank-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (max-width: 360px) {
  .xh-recharge-method {
    grid-template-columns: 42px minmax(0, 1fr) 16px;
    padding-right: 16px;
    padding-left: 18px;
  }

  .xh-recharge-method strong {
    font-size: 20px;
  }

  .xh-recharge-row {
    grid-template-columns: 88px minmax(0, 1fr) auto;
    padding-right: 14px;
    padding-left: 18px;
  }

  .xh-file-row {
    grid-template-columns: 88px minmax(0, 1fr);
  }
}

/* Game hall entrance page */
.xh-gamehall-page {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 6px 76px;
}

.xh-gamehall-topbar {
  min-height: 58px;
}

.xh-gamehall-topbar .xh-user {
  left: 9px;
  top: 9px;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.45;
}

.xh-gamehall-topbar .xh-top-actions {
  right: 16px;
  top: 20px;
  font-size: 13px;
}

.xh-gamehall-search {
  height: 33px;
  margin: 0 6px 9px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.xh-gamehall-card {
  overflow: hidden;
  margin: 0 6px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(254, 247, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 8px 20px rgba(66, 61, 133, 0.13);
}

.xh-gamehall-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 12px;
  min-height: 45px;
  padding: 9px 13px 8px;
  border-bottom: 1px solid rgba(206, 182, 221, 0.54);
}

.xh-gamehall-title strong {
  color: #73518a;
  font-size: 18px;
  font-weight: 600;
}

.xh-gamehall-title span {
  color: #a08bab;
  font-size: 12px;
  white-space: nowrap;
}

.xh-gamehall-tabs {
  display: flex;
  align-items: center;
  height: 38px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(182, 143, 198, 0.38);
  background: rgba(255, 249, 255, 0.9);
  scrollbar-width: none;
}

.xh-gamehall-tabs::-webkit-scrollbar {
  display: none;
}

.xh-gamehall-tab {
  position: relative;
  flex: 0 0 66px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #81638c;
  font: 13px/38px "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  text-align: center;
  background: transparent;
}

.xh-gamehall-tab.active {
  color: #8d5fa8;
  font-weight: 700;
}

.xh-gamehall-tab.active::after {
  position: absolute;
  right: 8px;
  bottom: -1px;
  left: 8px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  content: "";
  background: #a489c8;
}

.xh-gamehall-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 9px;
  padding: 13px 10px 16px;
}

.xh-gamehall-item {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 4px;
  padding: 8px 5px 9px;
  border: 1px solid rgba(196, 163, 216, 0.48);
  border-radius: 12px;
  color: #735681;
  text-align: center;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 5px 14px rgba(88, 73, 133, 0.08);
}

.xh-gamehall-thumb {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 68% 28%, rgba(255, 255, 255, 0.95) 0 10px, transparent 11px),
    linear-gradient(145deg, rgba(236, 187, 229, 0.94), rgba(135, 103, 198, 0.9));
  overflow: hidden;
}

.xh-gamehall-thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.xh-gamehall-item strong {
  display: block;
  width: 100%;
  overflow: hidden;
  color: #76548b;
  font-size: 13px;
  font-weight: 700;
  line-height: 17px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-gamehall-item small {
  display: block;
  width: 100%;
  min-height: 14px;
  overflow: hidden;
  color: #a18bab;
  font-size: 10px;
  line-height: 14px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-gamehall-item em {
  display: grid;
  place-items: center;
  min-width: 66px;
  height: 22px;
  margin-top: 1px;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  font-style: normal;
  background: #a489c8;
}

.xh-gamehall-empty {
  display: none;
  grid-column: 1 / -1;
  padding: 34px 0;
  color: #987ca8;
  font-size: 13px;
  text-align: center;
}

.xh-gamehall-categories {
  margin: 0 6px;
}

@media (max-width: 360px) {
  .xh-gamehall-grid {
    gap: 10px 7px;
    padding-right: 8px;
    padding-left: 8px;
  }

  .xh-gamehall-thumb {
    width: 52px;
    height: 52px;
  }

  .xh-gamehall-thumb img {
    width: 44px;
    height: 44px;
  }

  .xh-gamehall-item strong {
    font-size: 12px;
  }
}

/* Lottery hall latest draw list */
.xh-openhall-page {
  max-width: 430px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 5px 62px;
}

.xh-openhall-topbar {
  min-height: 58px;
}

.xh-openhall-topbar .xh-user {
  left: 9px;
  top: 9px;
  padding-left: 0;
  font-size: 12px;
  line-height: 1.45;
}

.xh-openhall-topbar .xh-top-actions {
  right: 16px;
  top: 20px;
  font-size: 13px;
}

.xh-openhall-search {
  height: 33px;
  margin: 0 6px 8px;
  padding: 0 14px;
  border-radius: 18px;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.xh-openhall-card {
  overflow: hidden;
  margin: 0 6px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, rgba(254, 247, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 8px 20px rgba(66, 61, 133, 0.13);
}

.xh-openhall-tabs {
  display: flex;
  align-items: center;
  height: 38px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid rgba(182, 143, 198, 0.38);
  background: rgba(255, 249, 255, 0.92);
  scrollbar-width: none;
}

.xh-openhall-tabs::-webkit-scrollbar {
  display: none;
}

.xh-openhall-tab {
  position: relative;
  flex: 0 0 70px;
  height: 38px;
  padding: 0;
  border: 0;
  color: #81638c;
  font: 13px/38px "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  text-align: center;
  background: transparent;
}

.xh-openhall-tab.active {
  color: #8d5fa8;
  font-weight: 700;
}

.xh-openhall-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 4px;
  border-radius: 4px 4px 0 0;
  content: "";
  background: #a489c8;
}

.xh-openhall-list {
  background: rgba(255, 250, 255, 0.86);
}

.xh-openhall-row {
  display: grid;
  grid-template-columns: minmax(0, 42%) minmax(0, 58%);
  min-height: 69px;
  padding: 9px 8px 8px 13px;
  border-bottom: 1px solid rgba(214, 195, 225, 0.58);
  color: #745782;
  background: rgba(255, 255, 255, 0.18);
}

.xh-openhall-row-main {
  display: grid;
  align-content: center;
  min-width: 0;
}

.xh-openhall-row-main strong {
  overflow: hidden;
  color: #72567f;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-openhall-row-main span {
  margin-top: 5px;
  color: #9a8aa4;
  font-size: 11px;
  line-height: 16px;
  white-space: nowrap;
}

.xh-openhall-row-main em {
  margin-left: 6px;
  color: #ff3953;
  font-style: normal;
}

.xh-openhall-row-result {
  display: grid;
  align-content: center;
  justify-items: end;
  min-width: 0;
}

.xh-openhall-row-result small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #8e8195;
  font-size: 12px;
  line-height: 18px;
  text-align: right;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.xh-openhall-balls {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  max-width: 100%;
  margin-top: 4px;
  overflow: hidden;
  white-space: nowrap;
}

.xh-openhall-balls i {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  color: #fff;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  background: radial-gradient(circle at 32% 26%, #cf5799 0 22%, #b94383 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.xh-openhall-balls.many {
  gap: 2px;
}

.xh-openhall-balls.many i {
  width: 21px;
  height: 21px;
  flex-basis: 21px;
  font-size: 11px;
  line-height: 21px;
}

.xh-openhall-closed {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 100%;
  color: #b94383;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.xh-openhall-closed i {
  position: relative;
  width: 42px;
  height: 31px;
  flex: 0 0 auto;
}

.xh-openhall-closed i::before,
.xh-openhall-closed i::after {
  position: absolute;
  left: 7px;
  top: 14px;
  width: 31px;
  height: 4px;
  border-radius: 4px;
  content: "";
  background: #333;
  transform: rotate(-38deg);
}

.xh-openhall-closed i::after {
  left: 3px;
  top: 13px;
  width: 26px;
  background: #111;
  transform: rotate(42deg);
}

.xh-openhall-closed b {
  overflow: hidden;
  max-width: 112px;
  font-weight: 700;
  text-overflow: ellipsis;
}

.xh-openhall-empty {
  display: none;
  padding: 38px 0;
  color: #987ca8;
  font-size: 13px;
  text-align: center;
}

@media (max-width: 360px) {
  .xh-openhall-tab {
    flex-basis: 64px;
    font-size: 12px;
  }

  .xh-openhall-row {
    grid-template-columns: minmax(0, 44%) minmax(0, 56%);
    padding-left: 10px;
  }

  .xh-openhall-balls i {
    width: 25px;
    height: 25px;
    flex-basis: 25px;
    font-size: 13px;
    line-height: 25px;
  }
}
