.dazhuanpan-pay-btn,
.dazhuanpan-wheel-btn,
.dazhuanpan-spin-btn {
  padding: 12px 22px;
  border-radius: 999px;
  border: 0;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #ff7a18 0%, #ffb347 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 122, 24, 0.25);
}

.dazhuanpan-modal,
.dazhuanpan-wheel-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  z-index: 100001;
  align-items: center;
  justify-content: center;
}

.dazhuanpan-modal.is-open,
.dazhuanpan-wheel-modal.is-open {
  display: flex;
}

.dazhuanpan-modal.is-open {
  z-index: 100002;
}

/* 支付弹窗：从底部弹出的 bottom sheet */
.dazhuanpan-modal.is-open {
  align-items: flex-end;
  justify-content: center;
}

.dazhuanpan-modal .dazhuanpan-modal-content {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 16px 16px 0 0;
  max-height: 85vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.15);
}

.dazhuanpan-modal.is-open .dazhuanpan-modal-content {
  transform: translateY(0);
}

.dazhuanpan-modal .dazhuanpan-modal-content::before {
  content: "";
  display: block;
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: #cbd5e1;
  margin: 10px auto 16px;
}

.dazhuanpan-modal-content,
.dazhuanpan-wheel-modal-content {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px;
  width: 92%;
  max-width: 760px;
  position: relative;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
}

.dazhuanpan-wheel-modal .dazhuanpan-wheel-modal-content {
  width: 92%;
  max-width: 760px;
  border-radius: 16px;
}

.dazhuanpan-wheel-above-btn {
  display: block;
  margin-bottom: 1.5rem;
}

.dazhuanpan-wheel-above-btn .dazhuanpan-wheel-modal-content {
  width: 100%;
  max-width: 760px;
}

.dazhuanpan-modal-close,
.dazhuanpan-wheel-close {
  position: absolute;
  right: 14px;
  top: 12px;
  background: transparent;
  border: 0;
  font-size: 24px;
  cursor: pointer;
}

.dazhuanpan-modal-title {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.dazhuanpan-modal-options {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.dazhuanpan-option {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 6px;
  background: #f8fafc;
  cursor: pointer;
}

.dazhuanpan-panel {
  display: none;
}

.dazhuanpan-panel.is-active {
  display: block;
}

.dazhuanpan-panel h4 {
  margin: 0 0 12px;
  font-size: 14px;
  color: #64748b;
  font-weight: 600;
}

/* 钱包列表：每行图标 + 名称 + 右侧圆圈，类似 Please select a wallet */
.dazhuanpan-wallet-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.dazhuanpan-wallet {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font-size: 16px;
  color: #0f172a;
  transition: background 0.15s;
}

.dazhuanpan-wallet:last-child {
  border-bottom: 0;
}

.dazhuanpan-wallet:hover {
  background: #f8fafc;
}

.dazhuanpan-wallet:active {
  background: #f1f5f9;
}

.dazhuanpan-wallet-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin-right: 14px;
  flex-shrink: 0;
}

.dazhuanpan-wallet-icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: #f1f5f9;
  padding: 4px;
  box-sizing: border-box;
}

.dazhuanpan-wallet-label {
  flex: 1;
}

.dazhuanpan-wallet-radio {
  width: 22px;
  height: 22px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  flex-shrink: 0;
}

.dazhuanpan-copy-switch {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.dazhuanpan-copy-tab {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 6px;
  background: #f8fafc;
  cursor: pointer;
}

.dazhuanpan-copy-tab.is-active {
  background: #eef6ff;
  border-color: #60a5fa;
}

.dazhuanpan-copy-area {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 10px;
  align-items: center;
}

.dazhuanpan-copy-input {
  width: 100%;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.dazhuanpan-copy-btn {
  padding: 8px 12px;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.dazhuanpan-qr img {
  max-width: 160px;
  display: block;
}

.dazhuanpan-min-amount {
  margin-top: 8px;
  color: #64748b;
  font-size: 12px;
}

.dazhuanpan-wheel-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.dazhuanpan-wheel-canvas-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 90vw;
  max-height: 90vw;
}

.dazhuanpan-wheel-disk {
  width: 320px;
  height: 320px;
  transform-origin: center;
  flex-shrink: 0;
}

.dazhuanpan-wheel-svg {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: block;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.dazhuanpan-wheel-canvas {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

.dazhuanpan-wheel-pointer {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 20px solid #ef4444;
}

.dazhuanpan-wheel-form {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dazhuanpan-wheel-form input {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.dazhuanpan-wheel-error {
  color: #ef4444;
  font-size: 12px;
}

.dazhuanpan-wheel-result {
  font-size: 14px;
  color: #1f2937;
  text-align: center;
  max-width: 420px;
}

.dazhuanpan-open-pay-link {
  color: #dc2626;
  cursor: pointer;
  text-decoration: underline;
  font-weight: 600;
}

.dazhuanpan-open-pay-link:hover {
  color: #b91c1c;
}
