/* User center / chat / recharge — blue theme aligned with site #3e73fe */
:root {
  --zmw-blue: #3e73fe;
  --zmw-blue-mid: #1783fc;
  --zmw-blue-dark: #0d5fc0;
  --zmw-blue-light: #e8f2ff;
  --zmw-bg: #f0f4fa;
  --zmw-text: #333;
  --zmw-text-muted: #888;
  --zmw-wap-header-h: 50px;
}

/* Site wap top bar (shared: index / UC / zhushou) */
.tx_wapbbslist {
  display: none;
  width: 100%;
  background: #fff;
  margin: 0 auto;
  position: relative;
  border-radius: 5px;
  margin-top: 2px;
}
@media screen and (max-width: 767.98px) {
  .tx_wapbbslist {
    display: block;
  }
  .wapindextop {
    position: fixed;
    z-index: 9999;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(#3e73fe, #1783fc);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    line-height: 1;
    height: 50px;
    max-height: 50px;
    overflow: hidden;
    box-sizing: border-box;
    color: #fff;
    font-size: 15px;
    box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
    top: 0;
    left: 0;
    text-align: center;
  }
  .wapindextop img {
    margin: 0 1px;
  }
  .wapindextop a {
    color: #fff;
  }
  .wapindextop > a.login-button {
    order: 1;
  }
  .wapindextop > a:not(.login-button):not(.register-button) {
    order: 2;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    overflow: hidden;
    line-height: 0;
  }
  .wapindextop > a:not(.login-button):not(.register-button) img {
    height: 50px;
    max-height: 50px;
    width: auto;
    display: block;
  }
  .wapindextop > a.register-button {
    order: 3;
  }
}

/* Three-slot bar (left | logo | right) whenever .wapindextop is shown — including PC auth. */
.wapindextop > a.login-button {
  order: 1;
}
.wapindextop > a:not(.login-button):not(.register-button) {
  order: 2;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
  line-height: 0;
}
.wapindextop > a:not(.login-button):not(.register-button) img {
  height: 50px;
  max-height: 50px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
}
.wapindextop > a.register-button {
  order: 3;
}
.head_top {
  width: 100%;
  height: 80px;
}
@media (max-width: 767.98px) {
  .head_top {
    height: 55px;
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page {
    padding-top: var(--zmw-wap-header-h, 50px);
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page .head_top {
    height: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page .tx_wapbbslist {
    height: 0 !important;
    min-height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page main#body,
  body.bbs-skin-zhuomawang.bbs-zhushou-page main#body > .container {
    padding-top: 0;
    margin-top: 0;
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page .ka {
    margin-top: 0;
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page .ka-header {
    display: none !important;
  }
  body.bbs-skin-zhuomawang.bbs-zhushou-page .ka > .card-body {
    padding-top: 0.5rem;
  }

  /* Rule / recharge: zhushou-style flush header (explicit body class, no :has()) */
  body.bbs-skin-zhuomawang.bbs-flush-top-page {
    padding-top: var(--zmw-wap-header-h, 50px) !important;
  }
  body.bbs-skin-zhuomawang.bbs-flush-top-page > .head_top {
    display: none !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body.bbs-skin-zhuomawang.bbs-flush-top-page .tx_wapbbslist {
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  body.bbs-skin-zhuomawang.bbs-flush-top-page .facai-subpage {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }
  body.bbs-skin-zhuomawang.bbs-flush-top-page .bbs-facai-kj {
    margin-top: 0 !important;
  }
  body.bbs-skin-zhuomawang.bbs-flush-top-page .facai-subpage .contai {
    margin-top: 0 !important;
    padding-top: 10px;
  }
  body.bbs-skin-zhuomawang.bbs-flush-top-page .facai-subpage .contai > .rule-title:first-child {
    margin-top: 0;
  }
}
a.register-button {
  position: relative;
  top: auto;
  right: auto;
  left: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  flex: 0 0 auto;
  border-radius: 20px 0 0 20px;
  background-color: rgba(0, 0, 0, 0.14);
  padding: 0 8px 0 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  max-width: 96px;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1;
  text-decoration: none;
  color: #fff;
  -webkit-tap-highlight-color: transparent;
  z-index: 2;
}
a.register-button.zmw-top-user-link:active {
  background-color: rgba(0, 0, 0, 0.28);
}
.zmw-reg-promo-btn {
  max-width: 118px;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  padding-top: 0;
  padding-bottom: 0;
}
.zmw-reg-promo-btn img,
.zmw-top-btn-icon {
  flex-shrink: 0;
  display: block;
  height: 18px;
  max-height: 18px;
  width: auto;
  vertical-align: middle;
}
.zmw-reg-promo-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  line-height: 1.1;
  margin-left: 2px;
}
.zmw-reg-promo-text b {
  font-size: 13px;
  font-weight: 700;
}
.zmw-reg-promo-badge {
  display: block;
  margin-top: 1px;
  font-size: 10px;
  font-weight: 700;
  color: #ffd54f;
  white-space: nowrap;
}
.zmw-top-user {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.15;
  text-align: right;
}
.zmw-top-user-name {
  font-size: 12px;
  font-weight: 700;
  max-width: 7.5em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.zmw-top-user-coin {
  font-size: 11px;
  font-weight: 600;
  margin-top: 1px;
  opacity: 0.96;
  white-space: nowrap;
}
.zmw-top-user-arr {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.85;
  margin-left: 1px;
}
a.login-button {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  height: auto;
  min-height: 0;
  max-height: none;
  align-self: stretch;
  flex: 0 0 auto;
  border-radius: 0 20px 20px 0;
  background-color: rgba(0, 0, 0, 0.14);
  padding: 0 10px 0 5px;
  color: #fff;
  text-decoration: none;
  z-index: 2;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 1;
}

/* Login / register: full-width site wap header (always visible) */
body.bbs-skin-zhuomawang.bbs-auth-page {
  padding-top: var(--zmw-wap-header-h, 50px);
}
body.bbs-skin-zhuomawang.bbs-auth-page .tx_wapbbslist {
  display: block !important;
  margin-top: 0;
}
body.bbs-skin-zhuomawang.bbs-auth-page .head_top {
  height: 0;
  min-height: 0;
  margin: 0;
  padding: 0;
}
body.bbs-skin-zhuomawang.bbs-auth-page .wapindextop {
  position: fixed;
  z-index: 9999;
  width: 100%;
  left: 0;
  top: 0;
  background: linear-gradient(#3e73fe, #1783fc);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  line-height: 1;
  height: 50px;
  max-height: 50px;
  overflow: hidden;
  box-sizing: border-box;
  color: #fff;
  font-size: 15px;
  box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 3px 1px -2px rgba(0, 0, 0, 0.2), 0 1px 5px 0 rgba(0, 0, 0, 0.12);
  text-align: center;
}
body.bbs-skin-zhuomawang.bbs-auth-page .wapindextop a {
  color: #fff;
  text-decoration: none;
}
body.bbs-skin-zhuomawang.bbs-auth-page a.login-button,
body.bbs-skin-zhuomawang.bbs-auth-page a.register-button {
  position: relative;
  height: auto;
  min-height: 0;
  max-height: none;
  font-size: 15px;
  font-weight: 700;
  min-width: 72px;
  justify-content: center;
}

@media screen and (min-width: 768px) {
  body.bbs-skin-zhuomawang.bbs-auth-page {
    --zmw-wap-header-h: 72px;
    padding-top: 72px;
  }
  body.bbs-skin-zhuomawang.bbs-auth-page .wapindextop {
    height: 72px;
    max-height: 72px;
    padding: 0 max(16px, calc((100% - 1030px) / 2));
  }
  body.bbs-skin-zhuomawang.bbs-auth-page .wapindextop > a:not(.login-button):not(.register-button) img {
    height: 60px;
    max-height: 60px;
  }
  body.bbs-skin-zhuomawang.bbs-auth-page a.login-button,
  body.bbs-skin-zhuomawang.bbs-auth-page a.register-button {
    min-width: 88px;
    padding: 0 18px;
  }
  body.bbs-skin-zhuomawang.bbs-auth-page a.register-button {
    justify-content: center;
    max-width: none;
  }
  body.bbs-skin-zhuomawang.bbs-auth-page .auth-wrap {
    max-width: 420px;
    margin: 36px auto 48px;
  }
}

/* UC subpages: wap bar on phone; desktop site header from md up */
body.bbs-uc-subpage {
  --zmw-wap-header-h: 50px;
  margin: 0;
  background: var(--zmw-bg);
}
@media (max-width: 767.98px) {
  body.bbs-uc-subpage {
    padding-top: var(--zmw-wap-header-h, 50px) !important;
  }
  body.bbs-uc-subpage .head_top,
  body.bbs-uc-subpage header.fixed-top {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
  }
}
@media screen and (min-width: 768px) {
  body.bbs-uc-subpage {
    --zmw-wap-header-h: 80px;
    padding-top: 80px !important;
  }
  body.bbs-uc-subpage header.fixed-top {
    display: block !important;
    height: 80px !important;
    min-height: 80px !important;
    overflow: visible !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 10060 !important;
  }
  body.bbs-uc-subpage header.fixed-top .indexnav img {
    max-height: 56px;
    width: auto;
    object-fit: contain;
  }
  body.bbs-uc-subpage .head_top,
  body.bbs-uc-subpage .wapindextop,
  body.bbs-uc-subpage .tx_wapbbslist {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}
body.bbs-uc-subpage .tx_wapbbslist {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  min-height: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
}
body.bbs-uc-subpage footer.bg-white { display: none; }

body.bbs-uc-subpage .facai-subpage {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Unified body bottom inset — same on index / rule / zhushou / kefu (no JS) */
body.bbs-skin-zhuomawang,
body.bbs-skin-zhuomawang.bbs-uc-subpage,
body.bbs-skin-zhuomawang.bbs-zhushou-page {
  padding-bottom: calc(var(--bbs-tabbar-height, 56px) + 16px + env(safe-area-inset-bottom, 0px)) !important;
}

/* Bottom tab bar — fixed layout, no active-state shift */
.layout-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 10050;
  background: #fff;
  overflow: visible;
  box-sizing: border-box;
  height: calc(var(--bbs-tabbar-height, 56px) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.layout-nav .van-tabbar {
  overflow: visible;
  max-width: 480px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 0.02rem 0.08rem 0 hsl(0deg 0% 63% / 50%);
  border-top: 1px solid #3e73fe;
  z-index: 10051;
  padding: 4px 0 0;
  box-sizing: border-box;
  height: var(--bbs-tabbar-height, 56px);
  min-height: var(--bbs-tabbar-height, 56px);
  max-height: var(--bbs-tabbar-height, 56px);
  display: flex;
  align-items: stretch;
  width: 100%;
  background-color: #fff;
}
.layout-nav .nav-solt {
  display: none !important;
  height: 0 !important;
  overflow: hidden;
  margin: 0 !important;
  padding: 0 !important;
}
.layout-nav .van-tabbar.van-tabbar--unfit {
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
/* Lock tabbar box — same pixel height on index / rule / zhushou / kefu */
body.bbs-skin-zhuomawang .layout-nav {
  height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  min-height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
  max-height: calc(56px + env(safe-area-inset-bottom, 0px)) !important;
}
body.bbs-skin-zhuomawang .layout-nav .van-tabbar {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding-bottom: 0 !important;
  box-sizing: border-box !important;
}
.layout-nav .van-tabbar-item {
  display: flex;
  flex: 1 1 0;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  margin: 0;
  padding: 0 2px 4px;
  border-radius: 0;
  box-sizing: border-box;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  overflow: visible;
  color: #9aa3b8;
  font-size: 12px;
  line-height: 14px;
  cursor: pointer;
  text-decoration: none;
  background: transparent !important;
}
.layout-nav .van-tabbar-item.active {
  background: transparent !important;
}
.layout-nav .van-tabbar-item .van-tabbar-item__text span {
  color: #9aa3b8;
  font-weight: 600;
  font-size: 12px;
  line-height: 14px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.layout-nav .van-tabbar-item.active .van-tabbar-item__text span {
  color: #3e73fe !important;
  font-weight: 600;
}
.layout-nav .van-tabbar-item__icon {
  position: relative;
  flex: 0 0 22px;
  width: 100%;
  height: 22px;
  margin: 0 0 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-nav .van-tabbar-item__icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  opacity: 0.55;
}
.layout-nav .van-tabbar-item.active .van-tabbar-item__icon img {
  opacity: 1;
}
.layout-nav .van-tabbar-item__text {
  position: relative;
  flex: 0 0 14px;
  height: 14px;
  width: 100%;
  text-align: center;
  overflow: hidden;
}

.layout-nav .van-tabbar-item.zmw-rcg-tab {
  position: relative;
  overflow: visible;
  justify-content: flex-end;
}
.layout-nav .van-tabbar-item.zmw-rcg-tab.active {
  background: transparent !important;
}
.layout-nav .zmw-rcg-fab {
  position: relative;
  top: 0;
  left: auto;
  transform: none;
  width: 100%;
  margin: -6px 0 0;
  padding: 0;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 38px;
}
.layout-nav .zmw-rcg-fab__btn {
  pointer-events: auto;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(180deg, #5b8cff 0%, #3e73fe 100%);
  box-shadow: 0 3px 10px rgba(62, 115, 254, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
}
.layout-nav .zmw-rcg-fab__btn img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
}
.layout-nav .zmw-rcg-fab__text {
  display: block;
  flex: 0 0 14px;
  height: 14px;
  line-height: 14px;
  margin: 1px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: #9aa3b8;
  pointer-events: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
.layout-nav .van-tabbar-item.zmw-rcg-tab.active .zmw-rcg-fab__text {
  color: #3e73fe;
  font-weight: 600;
}
.layout-nav .van-tabbar-item.zmw-rcg-tab.active .zmw-rcg-fab__btn,
.layout-nav .van-tabbar-item.zmw-rcg-tab:active .zmw-rcg-fab__btn {
  box-shadow: 0 3px 10px rgba(62, 115, 254, 0.38);
  transform: none;
}

/* Override zhushou / legacy page link colors inside tab bar */
body.bbs-skin-zhuomawang .layout-nav a.van-tabbar-item,
body.bbs-skin-zhuomawang .layout-nav a.van-tabbar-item:visited,
body.bbs-skin-zhuomawang .layout-nav a.van-tabbar-item:hover {
  text-decoration: none;
}
body.bbs-skin-zhuomawang .layout-nav a.van-tabbar-item.active,
body.bbs-skin-zhuomawang .layout-nav a.van-tabbar-item.active:visited,
body.bbs-skin-zhuomawang .layout-nav a.van-tabbar-item.active:hover {
  color: #3e73fe !important;
}
body.bbs-skin-zhuomawang .layout-nav .van-tabbar-item .van-tabbar-item__text span,
body.bbs-skin-zhuomawang .layout-nav .zmw-rcg-fab__text {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}
@media screen and (min-width: 768px) {
  body.bbs-skin-zhuomawang .layout-nav {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 480px;
  }
}
.zmw-top-user-link.active {
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

/* Shared toolbar (legacy; removed from page templates) */
.zmw-uc-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: linear-gradient(180deg, var(--zmw-blue), var(--zmw-blue-mid));
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 48px;
  box-shadow: 0 2px 8px rgba(62, 115, 254, 0.25);
}
.zmw-uc-toolbar .back {
  color: #fff;
  text-decoration: none;
  font-size: 26px;
  line-height: 1;
  width: 32px;
  flex-shrink: 0;
}
.zmw-uc-toolbar h1,
.zmw-uc-toolbar .title {
  flex: 1;
  text-align: center;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.zmw-uc-toolbar .right,
.zmw-uc-toolbar .online {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  white-space: nowrap;
  min-width: 32px;
  text-align: right;
}
.zmw-uc-toolbar .online { color: #b9f6ca; font-weight: 600; }

.zmw-uc-page,
.zmw-rcg-page,
.zmw-chat-page {
  font-size: 15px;
  -webkit-text-size-adjust: 100%;
}

/* ---- Personal center ---- */
.zmw-uc-page {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 12px calc(var(--bbs-tabbar-height, 56px) + 16px);
  background: var(--zmw-bg);
  min-height: calc(100vh - var(--zmw-wap-header-h, 50px));
  box-sizing: border-box;
}
.zmw-uc-me-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(62, 115, 254, 0.1);
  padding: 0;
  margin-bottom: 12px;
  overflow: hidden;
  border: 1px solid rgba(62, 115, 254, 0.12);
}
.zmw-uc-me-hero {
  background: linear-gradient(135deg, var(--zmw-blue) 0%, var(--zmw-blue-mid) 100%);
  padding: 16px 16px 18px;
  position: relative;
}
.zmw-uc-me-hero::after {
  content: "";
  position: absolute;
  right: -20px;
  top: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.zmw-uc-me-user {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}
.zmw-uc-me-user .avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.zmw-uc-me-user .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zmw-uc-me-meta { min-width: 0; flex: 1; }
.zmw-uc-me-user .name {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.zmw-uc-me-user .uid-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 3px 10px 3px 8px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.zmw-uc-me-user .uid-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}
.zmw-uc-me-user .uid {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.zmw-uc-me-card .zmw-uc-card {
  padding: 14px 16px 16px;
}
.zmw-uc-profile {
  display: none;
}
.zmw-uc-card {
  background: transparent;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  position: static;
  z-index: auto;
}
.zmw-uc-stats { display: flex; text-align: center; }
.zmw-uc-stats > div { flex: 1; position: relative; }
.zmw-uc-stats > div + div::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: #e3eeff;
}
.zmw-uc-stats .num { font-size: 22px; font-weight: 700; color: var(--zmw-blue); }
.zmw-uc-stats .lbl { font-size: 13px; color: var(--zmw-text-muted); margin-top: 6px; }
.zmw-uc-link {
  display: block;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-top: 14px;
  text-decoration: none;
  padding: 11px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--zmw-blue), var(--zmw-blue-mid));
  box-shadow: 0 3px 10px rgba(62, 115, 254, 0.28);
}
.zmw-uc-section {
  background: #fff;
  margin: 0 0 12px;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 10px rgba(62, 115, 254, 0.08);
  border: 1px solid rgba(62, 115, 254, 0.1);
}
.zmw-uc-section-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef4ff;
}
.zmw-uc-section-hd h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--zmw-text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.zmw-uc-section-hd h3::before {
  content: "";
  display: block;
  width: 4px;
  height: 17px;
  background: linear-gradient(180deg, var(--zmw-blue), var(--zmw-blue-mid));
  border-radius: 2px;
  flex-shrink: 0;
}
.zmw-uc-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.zmw-uc-tabs button {
  border: 1px solid #e8eef8;
  background: #f5f8ff;
  color: #666;
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}
.zmw-uc-tabs button.on {
  background: var(--zmw-blue-light);
  color: var(--zmw-blue);
  font-weight: 600;
  border-color: rgba(62, 115, 254, 0.35);
}
.zmw-uc-list { list-style: none; margin: 0; padding: 0; }
.zmw-uc-list li {
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.zmw-uc-list li:last-child { border-bottom: none; }
.zmw-uc-list .title { font-size: 15px; color: var(--zmw-text); font-weight: 500; }
.zmw-uc-list .time { font-size: 13px; color: var(--zmw-text-muted); margin-top: 4px; }
.zmw-uc-badge { font-size: 12px; padding: 3px 10px; border-radius: 4px; white-space: nowrap; font-weight: 600; }
.zmw-uc-badge.pending { background: #fff8e1; color: #f57c00; }
.zmw-uc-badge.ok { background: #e8f5e9; color: #2e7d32; }
.zmw-uc-badge.no { background: #ffebee; color: #c62828; }
.zmw-uc-delta { font-size: 16px; font-weight: 700; text-align: right; }
.zmw-uc-delta.minus { color: #e53935; }
.zmw-uc-delta.plus { color: #2e7d32; }
.zmw-uc-empty { text-align: center; color: var(--zmw-text-muted); padding: 24px 0; font-size: 14px; }
.zmw-uc-logout {
  display: block;
  margin: 8px 12px 16px;
  text-align: center;
  padding: 14px;
  border: 1px solid #ddd;
  color: #666;
  border-radius: 10px;
  text-decoration: none;
  background: #fff;
  font-size: 15px;
}

/* ---- Chat ---- */
.zmw-chat-page {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--zmw-wap-header-h, 50px) - var(--bbs-tabbar-height, 56px));
  min-height: 360px;
  background: var(--zmw-bg);
  box-sizing: border-box;
  padding-bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-chat-bar-h, 60px));
}
body.bbs-uc-subpage .zmw-chat-page {
  position: fixed;
  top: var(--zmw-wap-header-h, 50px);
  left: 0;
  right: 0;
  bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-chat-bar-h, 60px));
  height: auto;
  min-height: 0;
  max-width: 480px;
  margin: 0 auto;
  padding-bottom: 0;
  z-index: 10040;
}
.zmw-chat-msgs {
  flex: 1;
  overflow-y: auto;
  padding: 14px 12px;
  padding-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.zmw-chat-date { text-align: center; margin: 12px 0; }
.zmw-chat-date span {
  background: rgba(0, 0, 0, 0.06);
  color: #666;
  font-size: 13px;
  padding: 5px 14px;
  border-radius: 999px;
}
.zmw-chat-row { display: flex; margin-bottom: 14px; align-items: flex-end; gap: 10px; }
.zmw-chat-row.me { flex-direction: row-reverse; }
.zmw-chat-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #ddd;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: #666;
  overflow: hidden;
}
.zmw-chat-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.zmw-chat-row.me .zmw-chat-av { background: var(--zmw-blue-light); color: var(--zmw-blue); }
.zmw-chat-bubble {
  max-width: 72%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.5;
  word-break: break-word;
}
.zmw-chat-row:not(.me) .zmw-chat-bubble {
  background: #fff;
  color: var(--zmw-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}
.zmw-chat-row.me .zmw-chat-bubble {
  background: linear-gradient(135deg, var(--zmw-blue), var(--zmw-blue-mid));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.zmw-chat-bubble.emoji {
  background: transparent !important;
  box-shadow: none !important;
  color: inherit;
  font-size: 36px;
  line-height: 1.15;
  padding: 2px 6px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.zmw-chat-row.me .zmw-chat-bubble.emoji {
  background: transparent !important;
  color: inherit;
}
.zmw-chat-bubble.auto {
  white-space: pre-wrap;
  line-height: 1.45;
}
.zmw-chat-bubble img { max-width: 200px; border-radius: 8px; display: block; }
.zmw-chat-meta { font-size: 12px; color: #66bb6a; margin-top: 4px; text-align: right; }
.zmw-chat-dock {
  flex-shrink: 0;
  background: #fff;
  box-sizing: border-box;
}
body.bbs-uc-subpage .zmw-chat-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--bbs-tabbar-height, 56px);
  max-width: 480px;
  margin: 0 auto;
  z-index: 10052;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.06);
}
/* Kefu: leave room for center recharge FAB protruding above tabbar */
body.bbs-uc-subpage.bbs-kefu-page {
  --zmw-fab-gap: 18px;
}
body.bbs-uc-subpage.bbs-kefu-page .zmw-chat-dock {
  bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-fab-gap, 18px));
  z-index: 10052;
}
body.bbs-uc-subpage.bbs-kefu-page .zmw-chat-page {
  bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-fab-gap, 18px) + var(--zmw-chat-bar-h, 60px));
}
body.bbs-uc-subpage.bbs-kefu-page .zmw-emoji-panel {
  bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-fab-gap, 18px) + var(--zmw-chat-bar-h, 60px));
}
body.bbs-uc-subpage.bbs-kefu-page .layout-nav {
  z-index: 10080;
  max-height: none !important;
  height: auto !important;
  min-height: calc(var(--bbs-tabbar-height, 56px) + env(safe-area-inset-bottom, 0px)) !important;
  overflow: visible !important;
  background: transparent;
  pointer-events: none;
}
body.bbs-uc-subpage.bbs-kefu-page .layout-nav .van-tabbar {
  pointer-events: auto;
  overflow: visible !important;
  z-index: 10081;
}
body.bbs-uc-subpage.bbs-kefu-page .layout-nav .van-tabbar-item.zmw-rcg-tab {
  z-index: 10082;
  overflow: visible;
}
body.bbs-uc-subpage.bbs-kefu-page .layout-nav .zmw-rcg-fab {
  z-index: 10083;
  margin-top: -12px;
}
body.bbs-uc-subpage.bbs-kefu-page .layout-nav .zmw-rcg-fab__btn {
  position: relative;
  z-index: 10084;
  box-shadow: 0 3px 12px rgba(62, 115, 254, 0.45);
}
body.bbs-uc-subpage .layout-nav {
  z-index: 10065;
}
.zmw-chat-dock-toggle {
  width: 100%;
  border: none;
  border-top: 1px solid #eee;
  background: #f8f9fb;
  padding: 5px 12px;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}
.zmw-chat-dock-toggle:active {
  background: #eef1f5;
}
.zmw-chat-dock-chevron {
  font-size: 10px;
  color: #aaa;
}
body.zmw-chat-faq-collapsed .zmw-chat-quick,
.zmw-chat-faq-wrap.is-collapsed .zmw-chat-quick {
  display: none !important;
}
.zmw-chat-quick.is-empty {
  display: none;
}
.zmw-chat-faq-wrap {
  flex-shrink: 0;
}
.zmw-chat-quick {
  flex-shrink: 0;
  background: #f8f9fb;
  border-top: 1px solid #eee;
  padding: 8px 10px 6px;
  box-sizing: border-box;
}
body.bbs-uc-subpage .zmw-chat-quick {
  position: static;
  bottom: auto;
  max-width: none;
  margin: 0;
  z-index: auto;
}
.zmw-chat-quick-tip {
  font-size: 11px;
  color: #888;
  line-height: 1.35;
  margin-bottom: 6px;
}
.zmw-chat-quick-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.zmw-chat-quick-chip {
  border: 1px solid #d6e4ff;
  background: #fff;
  color: var(--zmw-blue, #1565c0);
  font-size: 12px;
  line-height: 1.2;
  padding: 6px 10px;
  border-radius: 16px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.zmw-chat-quick-chip:active {
  background: #e8f0fe;
}
.zmw-chat-bar {
  background: #fff;
  border-top: 1px solid #eee;
  padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
  box-sizing: border-box;
}
body.bbs-uc-subpage .zmw-chat-bar {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  max-width: none;
  margin: 0;
  z-index: auto;
  box-shadow: none;
}
body.bbs-uc-subpage .zmw-emoji-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-chat-bar-h, 60px));
  max-width: 480px;
  margin: 0 auto;
  z-index: 10062;
  box-sizing: border-box;
  background: #fff;
  border-top: 1px solid #eee;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.1);
  min-height: 52px;
}
body.bbs-uc-subpage.zmw-emoji-open .zmw-chat-page,
body.bbs-uc-subpage .zmw-chat-page.zmw-emoji-open {
  padding-bottom: calc(var(--bbs-tabbar-height, 56px) + var(--zmw-chat-bar-h, 60px) + 128px);
}
body.bbs-uc-subpage.zmw-emoji-open .zmw-chat-msgs {
  padding-bottom: 132px;
}
.zmw-chat-bar button.icon {
  border: none;
  background: none;
  font-size: 24px;
  line-height: 1;
  width: 30px;
  height: 30px;
  padding: 0;
  cursor: pointer;
  color: #666;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.zmw-chat-bar textarea {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 18px;
  padding: 7px 12px;
  font-size: 14px;
  resize: none;
  max-height: 80px;
  line-height: 1.35;
  font-family: inherit;
}
.zmw-chat-bar textarea:focus {
  outline: none;
  border-color: var(--zmw-blue, #1565c0);
  box-shadow: 0 0 0 2px rgba(21, 101, 192, 0.1);
}
.zmw-chat-bar .send {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--zmw-blue), var(--zmw-blue-mid));
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  flex-shrink: 0;
}
.zmw-emoji-panel {
  display: none;
  padding: 8px 10px;
  background: #fff;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
  gap: 4px;
  max-height: 120px;
  overflow-y: auto;
  flex-shrink: 0;
  width: 100%;
}
.zmw-emoji-panel.open { display: flex; }
.zmw-emoji-panel button {
  border: none;
  background: none;
  font-size: 28px;
  line-height: 1;
  padding: 6px;
  cursor: pointer;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

/* Recharge: fixed scroll pane under wap header (same strategy as chat) */
@media (max-width: 767.98px) {
  body.bbs-uc-subpage.bbs-rcg-page {
    padding-top: 0 !important;
  }
  body.bbs-uc-subpage.bbs-rcg-page .zmw-rcg-page {
    position: fixed;
    top: var(--zmw-wap-header-h, 50px);
    left: 0;
    right: 0;
    bottom: calc(var(--bbs-tabbar-height, 56px) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 480px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 8px;
    z-index: 10040;
    box-sizing: border-box;
  }

  /* Rule: fixed scroll pane — same as recharge / chat */
  body.bbs-skin-zhuomawang.bbs-rule-page {
    padding-top: 0 !important;
    overflow: hidden;
  }
  body.bbs-skin-zhuomawang.bbs-rule-page .wapindextop {
    display: flex !important;
    align-items: stretch !important;
    height: 50px !important;
    max-height: 50px !important;
    line-height: 1 !important;
    overflow: hidden !important;
  }
  body.bbs-skin-zhuomawang.bbs-rule-page .wapindextop a.login-button,
  body.bbs-skin-zhuomawang.bbs-rule-page .wapindextop a.register-button {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    align-self: stretch !important;
    overflow: hidden !important;
    line-height: 1 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin: 0 !important;
  }
  body.bbs-skin-zhuomawang.bbs-rule-page footer.bg-white {
    display: none !important;
  }
  body.bbs-skin-zhuomawang.bbs-rule-page .facai-subpage {
    position: fixed;
    top: var(--zmw-wap-header-h, 50px);
    left: 0;
    right: 0;
    bottom: calc(var(--bbs-tabbar-height, 56px) + env(safe-area-inset-bottom, 0px));
    width: 100%;
    max-width: 1030px;
    height: auto;
    min-height: 0;
    margin: 0 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    z-index: 10040;
    box-sizing: border-box;
    background: #fff;
  }
  body.bbs-skin-zhuomawang.bbs-rule-page .facai-subpage .contai {
    margin-top: 0 !important;
    margin-bottom: 16px;
    padding-top: 8px;
  }
  body.bbs-skin-zhuomawang.bbs-rule-page .facai-subpage .contai > .rule-title:first-child {
    margin-top: 0;
  }
}

/* ---- Recharge ---- */
.zmw-rcg-page {
  max-width: 480px;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: calc(var(--bbs-tabbar-height, 56px) + 8px);
  min-height: auto;
  background: var(--zmw-bg);
  box-sizing: border-box;
}
.zmw-rcg-body { padding: 0 12px 6px; }

/* Marquee — single row flush under fixed wap header (body already has header inset) */
.zmw-rcg-marquee {
  margin: 0 -12px 6px;
  box-sizing: border-box;
  background: linear-gradient(90deg, #fff8e1, #ffe082);
  border-bottom: 1px solid #ffd54f;
  overflow: hidden;
}
.zmw-rcg-marquee-inner {
  height: 34px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.zmw-rcg-marquee-track {
  display: inline-flex;
  white-space: nowrap;
  animation: zmw-rcg-marquee 28s linear infinite;
}
.zmw-rcg-marquee-text {
  display: inline-block;
  padding: 0 20px;
  font-size: 13px;
  font-weight: 600;
  color: #c62828;
  line-height: 34px;
}
@keyframes zmw-rcg-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.zmw-rcg-first-banner {
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 8px;
  background: linear-gradient(90deg, #ff6f00, #ff9800);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 2px 8px rgba(255, 111, 0, 0.25);
}

.zmw-rcg-balance { display: none !important; }

.zmw-rcg-section {
  background: #fff;
  border-radius: 12px;
  padding: 14px 12px;
  margin-bottom: 10px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}
.zmw-rcg-section-tiers {
  padding-bottom: 12px;
  margin-top: 6px;
  margin-bottom: 8px;
}
.zmw-rcg-section h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--zmw-text);
}
.zmw-rcg-section-pay {
  margin-bottom: 10px;
  padding: 0;
  box-shadow: none;
  background: transparent;
}
.zmw-rcg-section-pay h3 {
  margin-bottom: 10px;
  font-size: 15px;
}

.zmw-rcg-benefits {
  background: linear-gradient(135deg, #e8f0fe, #f0f5ff);
  border: 1px solid #c5d7ff;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.zmw-rcg-benefits-title {
  display: none;
}
.zmw-rcg-benefits-list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  color: var(--zmw-text);
  line-height: 1.45;
}
.zmw-rcg-benefits-list .zmw-rcg-benefits-main {
  font-weight: 600;
}
.zmw-rcg-benefits-list strong,
.zmw-rcg-benefits-list .zmw-rcg-hl-times {
  color: #ff6f00;
  font-size: 17px;
  font-weight: 800;
}
.zmw-rcg-benefits-note {
  margin: 4px 0 0;
  font-size: 10px;
  color: #999;
  line-height: 1.35;
}

.zmw-rcg-paydock {
  background: #fff;
  border-radius: 12px;
  padding: 12px 12px 10px;
  margin-bottom: 0;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.zmw-rcg-help-link {
  margin: 10px 0 0;
  text-align: center;
}
.zmw-rcg-help-link a {
  font-size: 12px;
  color: #888;
  text-decoration: none;
}
.zmw-rcg-help-link a:active {
  color: var(--zmw-blue);
}

.zmw-rcg-nudge-mini {
  margin: 8px 0 0;
  min-height: 18px;
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.45;
  transition: opacity 0.28s ease;
}

.zmw-rcg-tier-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.zmw-rcg-tier {
  display: block;
  width: 100%;
  text-align: center;
  border: 2px solid #e8e8e8;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px 12px;
  cursor: pointer;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.15s, background 0.15s;
  min-height: 92px;
}
.zmw-rcg-tier.on {
  border-color: var(--zmw-blue);
  background: #f0f5ff;
  box-shadow: 0 2px 10px rgba(62, 115, 254, 0.15);
}
.zmw-rcg-tier-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 10px 0 10px 0;
  color: #fff;
  line-height: 1.2;
}
.zmw-rcg-tier-badge.badge-rec { background: var(--zmw-blue); }
.zmw-rcg-tier-badge.badge-best { background: #ff5722; }
.zmw-rcg-tier-badge.badge-hot { background: #78909c; }
.zmw-rcg-tier-deadline {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 0 10px 0 10px;
  background: #e53935;
  color: #fff;
  line-height: 1.2;
}
.zmw-rcg-tier-yuan {
  font-size: 16px;
  font-weight: 700;
  color: var(--zmw-text);
  margin-bottom: 4px;
}
.zmw-rcg-tier-coins {
  font-size: 22px;
  font-weight: 700;
  color: var(--zmw-blue);
  line-height: 1.2;
}
.zmw-rcg-tier-coins::before {
  content: '到账 ';
  font-size: 12px;
  font-weight: 500;
  color: #888;
}
.zmw-rcg-tier-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}
.zmw-rcg-tier-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  line-height: 1.3;
}
.zmw-rcg-tier-tag-bonus {
  color: #e65100;
  background: #fff3e0;
}
.zmw-rcg-tier-tag-promo {
  color: #c62828;
  background: #ffebee;
}
.zmw-rcg-tier-tag-first {
  color: #6a1b9a;
  background: #f3e5f5;
}
.zmw-rcg-tier-custom .zmw-rcg-tier-coins::before { content: ''; }

.zmw-rcg-pay { display: flex; gap: 10px; }
.zmw-rcg-pay button {
  flex: 1;
  border: 2px solid #e8e8e8;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--zmw-text);
  line-height: 1.2;
}
.zmw-rcg-pay button.on {
  border-color: var(--zmw-blue);
  color: var(--zmw-blue);
  background: var(--zmw-blue-light);
  font-weight: 700;
}

.zmw-rcg-submit {
  display: block;
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--zmw-blue), var(--zmw-blue-mid));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  padding: 18px 10px;
  min-height: 54px;
  border-radius: 10px;
  margin-top: 6px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(62, 115, 254, 0.35);
  letter-spacing: 0.01em;
}
.zmw-rcg-submit .zmw-rcg-hl-coins {
  color: #ffeb3b;
  font-size: 17px;
  font-weight: 800;
}
.zmw-rcg-submit .zmw-rcg-hl-tips {
  color: #fff9c4;
  font-weight: 700;
}
.zmw-rcg-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.zmw-rcg-custom-in {
  display: none;
  width: 100%;
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 15px;
  box-sizing: border-box;
}
.zmw-rcg-custom-in.show { display: block; }

.zmw-rcg-modal-sub {
  font-size: 14px;
  color: var(--zmw-blue);
  font-weight: 600;
  margin: 0 0 8px;
  line-height: 1.45;
}
.zmw-rcg-modal-urgency {
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff8e1;
  border-radius: 8px;
  font-size: 13px;
  color: #e65100;
  font-weight: 600;
  line-height: 1.45;
  text-align: left;
}

.zmw-rcg-modal {
  display: none;
  position: fixed;
  inset: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  /* Above .zmw-rcg-page (10040) and bottom tabbar (10051) */
  z-index: 30000;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}
.zmw-rcg-modal.open {
  display: -webkit-flex;
  display: flex;
}
.zmw-rcg-modal-box {
  background: #fff;
  border-radius: 12px;
  padding: 22px;
  max-width: 320px;
  width: 100%;
  text-align: center;
}
.zmw-rcg-modal-box img { max-width: 240px; max-height: 240px; margin: 12px auto; display: block; }
.zmw-rcg-modal-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
  text-align: left;
}
.zmw-rcg-modal-hint strong { color: var(--zmw-blue); font-weight: 700; }
.zmw-rcg-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.zmw-rcg-modal-btn-primary,
.zmw-rcg-modal-btn-secondary {
  width: 100%;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
}
.zmw-rcg-modal-btn-primary {
  border: none;
  background: var(--zmw-blue);
  color: #fff;
}
.zmw-rcg-modal-btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.zmw-rcg-modal-btn-secondary {
  border: 1px solid #ddd;
  background: #fff;
  color: #666;
}
.zmw-rcg-modal-note {
  margin: 10px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: #c62828;
  line-height: 1.4;
}

/* CS tab unread badge (also inlined on chrome for non-UC pages) */
a.zmw-kefu-tab { position: relative; }
.zmw-kefu-badge {
  position: absolute;
  top: -2px;
  right: -6px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: #f44336;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  border-radius: 8px;
  z-index: 5;
  font-weight: 600;
  box-sizing: border-box;
}
.layout-nav a.zmw-kefu-tab .zmw-kefu-badge {
  top: 2px;
  right: calc(50% - 24px);
}
