.pay-pin-dialog {
  position: fixed;
  inset: auto 0 0;
  width: min(100%, var(--demo-width));
  max-width: none;
  max-height: calc(100dvh - 12px);
  margin: 0 auto;
  padding: 16px 16px max(32px, env(safe-area-inset-bottom));
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 16px 16px 0 0;
  background: #191612;
  color: #f5eee1;
}

.pay-pin-dialog::backdrop { background: rgb(0 0 0 / 61%); }

.pay-pin-handle {
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 4px;
  background: #312c28;
}

.pay-pin-dialog h2 {
  margin: 0 0 18px;
  color: #fff8f0;
  font-size: 18px;
  font-weight: 650;
}

.pay-pin-dialog h2:focus { outline: 0; }

.pay-pin-field { min-width: 0; margin: 0; padding: 0; border: 0; }
.pay-pin-field:not([hidden]) ~ .pay-pin-field { margin-top: 32px; }
.pay-pin-field legend { margin-bottom: 8px; color: #a9967b; font-size: 12px; }

.pay-pin-proof:not([hidden]) { display: grid; gap: 8px; margin-bottom: 20px; color: #a9967b; font-size: 12px; }
.pay-pin-proof input {
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid #393939;
  border-radius: 8px;
  background: #2b2828;
  color: #f5eee1;
}

.pay-pin-digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(5px, 3vw, 14px);
}

.pay-pin-digits input {
  width: 100%;
  min-width: 0;
  height: 52px;
  padding: 0;
  border: 1px solid #ffffff16;
  border-radius: 8px;
  background: #2b2828;
  color: #f5eee1;
  font-size: 20px;
  text-align: center;
}

.pay-pin-digits input:focus { border-color: #c8a76d; outline: 0; }

.pay-pin-error {
  margin: 10px 0 0;
  color: #ffc1aa;
  font-size: 12px;
  line-height: 1.45;
}

.pay-pin-error:empty { display: none; }

.pay-pin-note {
  display: flex;
  align-items: start;
  gap: 8px;
  margin-top: 40px;
  padding: 12px 16px;
  border-radius: 8px;
  background: #211e1b;
  color: #bba589;
  font-size: 11px;
  line-height: 1.55;
}

.pay-pin-note svg { flex: none; margin-top: 1px; }

.pay-pin-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.pay-pin-actions button {
  min-height: 44px;
  padding: 8px;
  border: 1px solid #393939;
  border-radius: 12px;
  background: #211e1b;
  color: #dec28a;
  font-size: 14px;
}

.pay-pin-actions button[type="submit"] {
  border-color: #a88780;
  background: linear-gradient(155deg, #7a6360, #322b25);
  color: #fff8f0;
}

.pay-pin-actions button:disabled {
  border-color: transparent;
  background: #393939;
  color: #96928e;
  cursor: default;
}

#withdraw-page .withdraw-content { padding-top: 20px; }

#withdraw-page .promotion-tabs button[aria-pressed="true"] {
  border-color: transparent;
  background: linear-gradient(#191715, #101010) padding-box,
    linear-gradient(110deg, #ccb37a, #322b25) border-box;
  color: #e2c177;
}

#withdraw-page .withdraw-wallet {
  padding-inline: 16px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #594431, #302419 40%, #1a130b);
  font-size: 14px;
}

#withdraw-page .withdraw-wallet strong { font-size: 16px; }

#withdraw-page .withdraw-form {
  gap: 12px;
  padding: 16px;
  background: #231f1a;
  color: #f5eee1;
}

#withdraw-page .withdraw-form label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 400;
}

#withdraw-page .withdraw-destination {
  display: block;
  width: 100%;
  padding-inline: 12px 16px;
  border-color: #393939;
  background: #1c1917;
  color: #dfc89d;
  font-size: 14px;
  text-align: start;
}
#withdraw-page .withdraw-destination:disabled { opacity: .65; }
.withdraw-settings-link { margin-top: 6px; color: #dec28a; font-size: 12px; text-decoration: underline; }
.withdraw-settings-status { margin-top: 6px; color: #d0b491; font-size: 12px; }
.withdraw-settings-status:empty { display: none; }

#withdraw-page .deposit-input {
  border-color: #393939;
  background: #2b2828;
}

#withdraw-page .deposit-input:focus-within { border-color: #b59a65; }
#withdraw-page .withdraw-pin-input { gap: 8px; }
#withdraw-page .withdraw-pin-input > svg { flex: none; color: #c8b397; }
#withdraw-page .withdraw-pin-input .auth-toggle { margin-inline-start: auto; }

#withdraw-page .withdraw-turnover {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 8px;
  color: #a9967b;
  font-size: 12px;
}

#withdraw-page .withdraw-support { justify-self: center; color: #cbb37c; font-size: 12px; }
#withdraw-page .withdraw-support:hover { text-decoration: underline; }

@media (max-width: 330px) {
  .pay-pin-dialog { padding-inline: 12px; }
  .pay-pin-digits input { height: 46px; }
}

@media (max-height: 580px) {
  .pay-pin-dialog { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  .pay-pin-field:not([hidden]) ~ .pay-pin-field { margin-top: 18px; }
  .pay-pin-note { margin-top: 18px; }
}

/* 2026.11.25：照原版的居中提示框（取消设置支付密码时「请先设置支付密码」） */
.pay-pin-toast:not([hidden]) {
  position: fixed;
  z-index: 2147483000;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  display: grid;
  justify-items: center;
  gap: 10px;
  min-width: 180px;
  max-width: calc(100% - 64px);
  padding: 18px 22px 16px;
  border: 1px solid #4a4038;
  border-radius: 14px;
  background: rgb(38 34 30 / 96%);
  box-shadow: 0 12px 40px rgb(0 0 0 / 55%);
  color: #f5eee1;
  pointer-events: none;
}
.pay-pin-toast svg { color: #f1dcb5; }
.pay-pin-toast p { margin: 0; font-size: 15px; text-align: center; }
