.karma-wechat-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  color: #f8fbff;
}

.karma-wechat-modal.is-open {
  display: flex;
}

.karma-wechat-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 7, 17, 0.78);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.karma-wechat-dialog {
  position: relative;
  width: min(420px, calc(100vw - 32px));
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
    rgba(8, 12, 26, 0.94);
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.54), inset 0 1px rgba(255, 255, 255, 0.16);
  padding: 22px;
  overflow: hidden;
}

.karma-wechat-dialog::before {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, #7cff67, #00d8ff, #ffc46b);
  opacity: 0.9;
}

.karma-wechat-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.karma-wechat-head {
  padding-right: 44px;
}

.karma-wechat-kicker {
  margin: 0 0 8px;
  color: #7cff67;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.karma-wechat-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.22;
}

.karma-wechat-desc {
  margin: 10px 0 18px;
  color: rgba(226, 232, 240, 0.72);
  font-size: 14px;
  line-height: 1.7;
}

.karma-wechat-qr-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 8px 10px 0;
  box-shadow: none;
}

.karma-wechat-qr {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  opacity: 0.76;
  filter: drop-shadow(0 0 18px rgba(248, 251, 255, 0.12));
}

.karma-wechat-id {
  margin: 8px 0 12px;
  color: rgba(248, 251, 255, 0.76);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.karma-wechat-hint {
  margin: 12px 0 0;
  color: rgba(248, 251, 255, 0.86);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
}

.karma-wechat-copy {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #7cff67, #00d8ff 58%, #5227ff);
  color: #061018;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(0, 216, 255, 0.22);
}

.karma-wechat-copy.is-copied {
  background: linear-gradient(135deg, #7cff67, #b9ffad);
}

body.karma-wechat-lock {
  overflow: hidden;
}
