/* ===========================
   提现弹窗 — 深色玻璃态（底部弹出）
   （.modal-mask 已统一定义在 components.css）
=========================== */

.withdraw-modal {
  background: var(--bg-elevated);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  width: 100%; max-width: 480px; padding: 0 0 calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border-top: 1px solid rgba(255,255,255,0.06);
  max-height: 92vh; overflow-y: auto;
}
.modal-mask.show .withdraw-modal { transform: translateY(0); }

/* 提现弹窗内 auth-form 统一水平边距 */
.withdraw-modal .auth-form {
  padding: 0 22px;
}

/* 步骤内容区 */
.withdraw-step-content {
  padding-bottom: 24px;
}

/* 底部拖拽把手 */
.withdraw-modal::before {
  content: ''; display: block;
  width: 36px; height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.15); margin: 12px auto 0;
}

.withdraw-title {
  font-size: var(--fs-xl); font-weight: 800; color: var(--text-main);
  margin-bottom: 16px; padding: 16px 22px 0;
  display: flex; align-items: center; justify-content: space-between;
}

/* 步骤指示器 */
.withdraw-steps { display: flex; align-items: center; justify-content: center; gap:0; margin-bottom: 20px; }
.w-step { display: flex; align-items: center; gap:6px; color: var(--text-muted); font-size: var(--fs-sm); font-weight: 600; opacity:0.4; transition: all 0.3s; }
.w-step span {
  width: clamp(20px, 6.5vw, 24px); height: clamp(20px, 6.5vw, 24px); border-radius: 50%;
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); font-weight: 800; color: var(--text-muted); flex-shrink:0; transition: all 0.3s;
}
.w-step + .w-step::before {
  content: ''; width: 36px; height: 1.5px;
  background: rgba(255,255,255,0.06); margin: 0 8px; flex-shrink:0; display: inline-block; vertical-align: middle;
}
.w-step.active { opacity:1; }
.w-step.active span {
  background: linear-gradient(135deg, var(--primary), #34D399);
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.w-step.completed span {
  background: linear-gradient(135deg, #10B981, #34D399);
  border-color: transparent; color: #fff;
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.w-step.completed { opacity:1; }

/* 提示文字块 */
.withdraw-hint {
  display: flex; align-items: flex-start; gap: 10px;
  background: rgba(59,130,246,0.06); border: 1px solid rgba(59,130,246,0.12);
  border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 22px 18px;
  font-size: var(--fs-sm); color: var(--text-sub); line-height: 1.5;
}
.withdraw-hint i { font-size: var(--icon-md); color: #60A5FA; flex-shrink:0; margin-top:1px; }

/* ===========================
   银行卡管理
=========================== */
.bank-card-list { display: flex; flex-direction: column; gap: 10px; padding: 0 22px; margin-bottom: 14px; }
.bank-card-item {
  background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md); padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; transition: all 0.2s; position: relative;
}
.bank-card-item.selected {
  border-color: rgba(16,185,129,0.3); background: rgba(16,185,129,0.04);
  box-shadow: 0 0 0 3px rgba(16,185,129,0.06);
}
.bank-card-item .bcard-info { display: flex; align-items: center; gap: 12px; }
.bank-card-item .bcard-icon {
  width: clamp(34px, 11vw, 40px); height: clamp(24px, 8vw, 28px); border-radius: 5px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--icon-md); color: var(--gold); flex-shrink:0;
}
.bank-card-item .bcard-detail { }
.bank-card-item .bcard-bank { font-size: var(--fs-sm); font-weight: 700; color: var(--text-main); }
.bank-card-item .bcard-no { font-size: var(--fs-xs); color: var(--text-muted); font-weight: 500; margin-top: 2px; letter-spacing: 1px; }
.bank-card-item .bcard-name { font-size: var(--fs-xs); color: var(--text-light); margin-top:1px; }
.bank-card-item .bcard-delete {
  background: none; border: none; color: var(--text-light); font-size: var(--icon-md);
  cursor: pointer; padding: 4px; transition: color 0.15s;
}
.bank-card-item .bcard-delete:hover { color: #EF4444; }
.bank-card-item .bcard-delete:active { transform: scale(0.85); }

.bcard-check {
  position: absolute; top: 8px; right: 8px;
  width: clamp(17px, 5.5vw, 20px); height: clamp(17px, 5.5vw, 20px); border-radius: 50%;
  background: var(--primary); display: none; align-items: center; justify-content: center;
  color: #fff; font-size: var(--icon-xs);
}
.bank-card-item.selected .bcard-check { display: flex; }

/* ===========================
   打码量信息
=========================== */
.wager-info {
  background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius-md); padding: 14px 16px; margin: 0 22px 14px;
}
.wager-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 0; }
.wager-row + .wager-row { border-top: 1px solid rgba(255,255,255,0.04); }
.wager-label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; display: flex; align-items: center; gap: 5px; }
.wager-value { font-size: var(--fs-sm); font-weight: 700; color: var(--text-main); }
.wager-value.highlight { color: #F59E0B; font-size: var(--fs-lg); }

/* 选择银行卡下拉 */
.wd-select-card {
  background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-sm); padding: 0 14px;
  cursor: pointer; transition: border-color 0.25s; margin: 0 22px 14px;
}
.wd-select-card:focus-within,
.wd-select-card.active { border-color: var(--primary); }
.wd-selected-card {
  display: flex; align-items: center; gap: 8px; padding: 13px 0;
  color: var(--text-main); font-size: var(--fs-md); font-weight: 600;
}
.wd-selected-card i:first-child { color: var(--text-muted); font-size: var(--icon-md); }
.wd-selected-card i:last-child { color: var(--text-light); font-size: var(--icon-sm); margin-left: auto; }
.wd-selected-card span { flex:1; text-align: left; }

/* 银行卡选择浮层 */
.card-selector-overlay {
  position: fixed; inset:0; z-index: var(--z-card-selector);
  background: rgba(0,0,0,0.55); display: none;
}
.card-selector-overlay.show { display: block; }
.card-selector-panel {
  position: absolute; bottom:0; left:50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(18,18,36,0.98);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 22px 34px;
  max-height: 55vh; overflow-y: auto;
  animation: cardSelUp 0.3s ease;
}
@keyframes cardSelUp {
  from { transform: translateX(-50%) translateY(100%); }
  to { transform: translateX(-50%) translateY(0); }
}
.card-selector-title { font-size: var(--fs-lg); font-weight: 800; color: var(--text-main); text-align: center; margin-bottom: 14px; }
.card-selector-empty { text-align: center; padding: 30px 0; color: var(--text-muted); font-size: var(--fs-sm); }

/* 提现金额输入 */
.wd-amount-wrap {
  padding: 0 22px; margin-bottom: 18px;
}
.wd-amount-label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; margin-bottom: 8px; }
.wd-amount-input-wrap {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.03); border: 1.5px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-md); padding: 14px 16px;
  transition: border-color 0.25s;
}
.wd-amount-input-wrap:focus-within { border-color: var(--primary); }
.wd-amount-prefix { font-size: var(--fs-xl); font-weight: 800; color: var(--text-main); flex-shrink:0; }
.wd-amount-input {
  flex:1; background: none; border: none; outline: none;
  font-family: var(--font-display);
  font-size: var(--fs-2xl); font-weight: 800; color: var(--text-main);
  width: 100%; min-width:0; caret-color: var(--primary);
}
.wd-amount-input::placeholder { color: rgba(255,255,255,0.15); font-size: var(--fs-md); font-weight: 500; }

/* 快捷金额按钮 */
.wd-quick-amounts { display: flex; gap: 8px; margin-top: 10px; }
.wd-quick-btn {
  flex: 1; padding: 9px 0; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-sub); font-size: var(--fs-sm); font-weight: 700;
  cursor: pointer; transition: all 0.15s; text-align: center;
}
.wd-quick-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.08); }
.wd-quick-btn.active {
  background: rgba(16,185,129,0.1); border-color: var(--primary);
  color: var(--primary);
}
.wd-quick-all { font-size: var(--fs-sm); }

/* 金额输入校验反馈 */
.recharge-custom-input-wrap.error { border-color: #EF4444 !important; }
.recharge-custom-input-wrap.error .recharge-custom-prefix { color: #EF4444; }
.wd-amount-feedback {
  font-size: var(--fs-xs); margin-top: 6px; min-height: 16px;
  color: #EF4444; font-weight: 600;
}
.wd-amount-feedback.ok { color: var(--primary); }

/* 去掉 number 输入框上下箭头 */
#wdAmountInput::-webkit-outer-spin-button,
#wdAmountInput::-webkit-inner-spin-button { -webkit-appearance: none; margin:0; }
#wdAmountInput[type=number] { -moz-appearance: textfield; }

/* ===========================
   提现类型自定义选择器
=========================== */
.wd-type-select-wrap {
  position: relative;
  cursor: pointer;
}
.wd-type-select-wrap > i {
  position: static !important;
  transform: none !important;
  pointer-events: none;
}
.wd-type-trigger {
  display: flex; align-items: center; gap: 6px;
  padding: 14px 0; width: 100%;
  font-size: var(--fs-md); font-weight: 600; color: var(--text-main);
}
.wd-type-placeholder { color: var(--text-muted); }
.wd-type-value { flex: 1; }
.wd-type-placeholder.hidden { display: none; }
.wd-type-arrow {
  font-size: var(--icon-sm); color: var(--text-muted); transition: transform 0.25s;
  pointer-events: none;
}
.wd-type-select-wrap.open .wd-type-arrow { transform: rotate(180deg); }

/* 类型选择浮层 */
.type-selector-overlay {
  position: fixed; inset: 0; z-index: var(--z-card-selector);
  background: rgba(0,0,0,0.55); display: none;
}
.type-selector-overlay.show { display: block; }
.type-selector-panel {
  position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 480px;
  background: rgba(18,18,36,0.98);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 20px 22px 34px;
  animation: typeSelUp 0.3s ease;
}
@keyframes typeSelUp {
  from { transform: translateX(-50%) translateY(100%); }
  to { transform: translateX(-50%) translateY(0); }
}
.type-selector-title {
  font-size: var(--fs-lg); font-weight: 800; color: var(--text-main);
  text-align: center; margin-bottom: 16px;
}
.type-selector-options { display: flex; flex-direction: column; gap: 6px; }
.type-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03); border: 1.5px solid transparent;
  cursor: pointer; transition: all 0.2s;
  font-size: var(--fs-md); font-weight: 600; color: var(--text-main);
}
.type-option:hover {
  background: rgba(52,211,153,0.08); border-color: rgba(52,211,153,0.3);
}
.type-option.selected {
  background: rgba(52,211,153,0.12); border-color: var(--primary);
}
.type-option-icon {
  width: clamp(30px, 10vw, 36px); height: clamp(30px, 10vw, 36px); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: var(--icon-md); color: #fff; flex-shrink: 0;
}
.type-option-info { flex: 1; }
.type-option-name { font-size: var(--fs-md); font-weight: 600; color: var(--text-main); }
.type-option-desc { font-size: var(--fs-xs); color: var(--text-muted); margin-top: 2px; }
.type-option-check {
  font-size: var(--icon-lg); color: var(--primary); display: none;
}
.type-option.selected .type-option-check { display: block; }
.type-selector-cancel {
  width: 100%; margin-top: 14px; padding: 13px;
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted); font-size: var(--fs-md); font-weight: 600;
  cursor: pointer; transition: all 0.2s;
}
.type-selector-cancel:hover { background: rgba(255,255,255,0.06); color: var(--text-main); }

/* 提交按钮 */
.btn-withdraw-confirm {
  width: calc(100% - 44px); margin: 0 22px 28px;
  background: linear-gradient(135deg, var(--primary), #34D399);
  color: #fff; border: 1.5px solid rgba(16,185,129,0.6);
  border-radius: var(--radius-md); padding: 15px; font-size: var(--fs-md);
  font-weight: 800; cursor: pointer; letter-spacing: 1px;
  transition: all 0.25s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 6px 28px rgba(16,185,129,0.18);
}
.btn-withdraw-confirm:active { transform: scale(0.98); opacity:0.9; }

/* ===========================
   删除确认弹窗
=========================== */
.wd-confirm-dialog {
  width: 300px; max-width: 85vw;
  background: var(--bg-elevated);
  border-radius: var(--radius-xl);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 28px 24px 20px; text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: wdConfirmIn 0.25s cubic-bezier(.4,0,.2,1);
}
@keyframes wdConfirmIn {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.wd-confirm-icon { font-size: var(--icon-2xl); color: #F59E0B; margin-bottom: 12px; }
.wd-confirm-title { font-size: var(--fs-lg); font-weight: 800; color: var(--text-main); margin-bottom: 8px; }
.wd-confirm-desc { font-size: var(--fs-sm); color: var(--text-sub); line-height: 1.5; margin-bottom: 20px; }
.wd-confirm-btns { display: flex; gap: 12px; }
.wd-confirm-cancel {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  color: var(--text-sub); font-size: var(--fs-md); font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.wd-confirm-cancel:active { transform: scale(0.97); }
.wd-confirm-ok {
  flex: 1; padding: 12px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #EF4444, #F87171);
  border: 1px solid rgba(239,68,68,0.5); color: #fff;
  font-size: var(--fs-md); font-weight: 700; cursor: pointer;
  transition: all 0.15s;
}
.wd-confirm-ok:active { transform: scale(0.97); }

/* ===========================
   提现成功回执
=========================== */
.wd-receipt { padding: 10px 22px 0; text-align: center; animation: wdConfirmIn 0.35s cubic-bezier(.4,0,.2,1); }
.wd-receipt-icon { font-size: var(--icon-3xl); color: var(--primary); margin-bottom: 12px; }
.wd-receipt-title { font-size: var(--fs-xl); font-weight: 800; color: var(--text-main); margin-bottom: 6px; }
.wd-receipt-amount { font-size: var(--fs-3xl); font-weight: 900; color: var(--gold); margin-bottom: 20px; font-family: var(--font-display); }
.wd-receipt-detail {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-md); padding: 16px; margin-bottom: 6px;
}
.wd-receipt-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; }
.wd-receipt-row + .wd-receipt-row { border-top: 1px solid rgba(255,255,255,0.04); }
.wd-receipt-label { font-size: var(--fs-sm); color: var(--text-muted); font-weight: 600; }
.wd-receipt-value { font-size: var(--fs-sm); color: var(--text-main); font-weight: 700; }
.wd-receipt-status { color: #F59E0B; }

/* ===========================
   绑卡分区标题
=========================== */
.wd-section-title {
  display: flex; align-items: center; gap: 8px;
  padding: 0 22px; margin-bottom: 10px;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-sub);
}
.wd-section-title::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: var(--primary); flex-shrink: 0;
}
