/* 收款账户 — 列表 / 添加 / 选择器 */
body.bc-pa-dialog-open {
  overflow: hidden;
}

.bc-pa-page {
  --pa-gold: #fcd68b;
  --pa-gold-strong: #e0a540;
  --pa-surface: #232220;
  --pa-border: rgba(122, 106, 97, 0.55);
  --pa-muted: #ab9284;
  --pa-danger: #ff6b6b;

  min-height: 100vh;
  background-color: #1b1a1c;
  background-image: url('/client/assets/lt/bg.png');
  background-size: 100% auto;
  background-repeat: repeat-y;
  color: #fff;
}

.bc-pa-page .bc-main {
  display: flex;
  flex-direction: column;
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 0 calc(var(--safe-bottom) + 16px);
}

.bc-pa-toolbar {
  flex-shrink: 0;
  padding: 12px 14px 0;
}

.bc-pa-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.bc-pa-tabs::-webkit-scrollbar {
  display: none;
}

.bc-pa-tab {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 14px;
  border: 1px solid var(--pa-border);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  color: var(--pa-muted);
  font-size: 0.82rem;
  white-space: nowrap;
  cursor: pointer;
}

.bc-pa-tab.is-active {
  background: linear-gradient(180deg, #fbf5eb, #f0c996);
  color: #3c280c;
  border-color: transparent;
  font-weight: 600;
}

.bc-pa-body {
  flex: 1;
  padding: 12px 14px;
}

.bc-pa-add-wrap {
  padding: 0 14px 12px;
}

.bc-pa-add-btn {
  width: 100%;
  height: 44px;
  border: 1px dashed rgba(252, 214, 139, 0.45);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.25);
  color: var(--pa-gold);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
}

.bc-pa-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bc-pa-item {
  position: relative;
  padding: 14px;
  background: var(--pa-surface);
  border: 1px solid var(--pa-border);
  border-radius: 10px;
}

.bc-pa-item.is-selectable {
  cursor: pointer;
}

.bc-pa-item.is-selectable:active {
  opacity: 0.85;
}

.bc-pa-item__remark {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
  padding-right: 40px;
}

.bc-pa-item__sub {
  font-size: 0.8rem;
  color: var(--pa-muted);
  word-break: break-all;
  line-height: 1.45;
}

.bc-pa-item__delete {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--pa-gold);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bc-pa-item__delete .bc-icon {
  display: block;
}

.bc-pa-empty {
  text-align: center;
  padding: 48px 16px;
  color: var(--pa-muted);
  font-size: 0.88rem;
}

/* Dialog 共用 */
.bc-pa-dialog {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.bc-pa-dialog.is-open {
  pointer-events: auto;
  opacity: 1;
}

.bc-pa-dialog__mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.bc-pa-dialog__sheet {
  position: relative;
  width: 100%;
  max-width: 640px;
  max-height: min(88vh, 720px);
  background: #2a2826;
  border-radius: 16px 16px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.25s ease;
}

.bc-pa-dialog.is-open .bc-pa-dialog__sheet {
  transform: translateY(0);
}

.bc-pa-dialog__head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--pa-border);
}

.bc-pa-dialog__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.bc-pa-dialog__close {
  border: none;
  background: transparent;
  color: var(--pa-muted);
  font-size: 0.88rem;
  cursor: pointer;
}

.bc-pa-dialog__body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px calc(var(--safe-bottom) + 16px);
}

.bc-pa-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bc-pa-field label {
  display: block;
  font-size: 0.78rem;
  color: var(--pa-gold);
  margin-bottom: 6px;
}

.bc-pa-field input,
.bc-pa-field select {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--pa-border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 0.9rem;
}

.bc-pa-field input::placeholder {
  color: rgba(171, 146, 132, 0.65);
}

.bc-pa-field input.is-error,
.bc-pa-field select.is-error {
  border-color: var(--pa-danger);
}

.bc-pa-field__hint {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--pa-muted);
}

.bc-pa-field__err {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--pa-danger);
}

.bc-pa-form-error {
  margin: 0;
  font-size: 0.82rem;
  color: var(--pa-danger);
}

.bc-pa-form-submit {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(180deg, #fbf5eb, #e0a540);
  color: #3c280c;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.bc-pa-form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bc-pa-picker-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.bc-pa-picker-tabs::-webkit-scrollbar {
  display: none;
}

/* 居中确认弹窗 */
.bc-pa-dialog.bc-pa-dialog--center {
  align-items: center;
  padding: 20px;
}

.bc-pa-dialog.bc-pa-dialog--center .bc-pa-dialog__sheet {
  border-radius: 14px;
  max-height: none;
  transform: scale(0.96);
  transition: transform 0.2s ease;
}

.bc-pa-dialog.bc-pa-dialog--center.is-open .bc-pa-dialog__sheet {
  transform: scale(1);
}

.bc-pa-confirm__msg {
  margin: 0 0 18px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--pa-muted);
  text-align: center;
}

.bc-pa-confirm__actions {
  display: flex;
  gap: 10px;
}

.bc-pa-confirm__btn {
  flex: 1;
  height: 42px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
}

.bc-pa-confirm__btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--pa-muted);
}

.bc-pa-confirm__btn--danger {
  background: rgba(255, 107, 107, 0.18);
  color: #ff8a8a;
  border: 1px solid rgba(255, 107, 107, 0.35);
}

.bc-pa-confirm__btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* 提现页地址选择 */
.bc-wd-field input.bc-wd-address-pick {
  cursor: pointer;
  caret-color: transparent;
}

.bc-wd-field input.bc-wd-address-pick::placeholder {
  color: var(--wd-muted);
}
