/**
 * 提现弹窗样式（前台）
 *
 * ⚠️ 与站内其它弹窗（钱包连接弹窗）保持同一套视觉语言：
 *    深色卡片 + 圆角 + 黄色主色。
 *
 * ⚠️ 移动端适配：
 *    - 弹窗最大宽度 420px，窄屏时贴底展开
 *    - 按钮最小高度 44px（iOS 的可点区域建议值）
 *    - 输入框 font-size ≥ 16px —— iOS Safari 在 < 16px 时会自动放大整个页面
 */

.wd-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(3, 7, 18, .72);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.wd-overlay[hidden] { display: none; }

.wd-panel {
    width: min(100%, 420px);
    max-height: min(88vh, 640px);
    overflow-y: auto;
    padding: 20px 18px 16px;
    border-radius: 14px;
    background: #1f2937;
    box-shadow: 0 18px 48px rgba(0, 0, 0, .5);
}

.wd-title {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
    color: #f9fafb;
}

/* ---- 摘要（金额 + 可用余额）---- */
.wd-summary {
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #151923;
    text-align: center;
}

.wd-summary-label { color: #9ca3af; font-size: 12px; }
.wd-summary-value { margin-top: 4px; color: #eab308; font-size: 26px; font-weight: 700; line-height: 1.2; }
.wd-summary-value small { margin-left: 5px; font-size: 14px; font-weight: 500; }
.wd-summary-hint { margin-top: 6px; color: #9ca3af; font-size: 12px; }
.wd-summary-hint span:not(.wd-balance-num) { color: #6b7280; }
.wd-balance-num { color: #f9fafb; }

/* ---- 表单项 ---- */
.wd-field { margin-bottom: 16px; }
.wd-field label { display: block; margin-bottom: 6px; color: #9ca3af; font-size: 12px; }

.wd-input,
.wd-select {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #374151;
    border-radius: 8px;
    outline: none;
    background: #111827;
    color: #f9fafb;
    /* ⚠️ ≥16px：iOS Safari 输入框字号小于 16px 时会自动放大整页 */
    font-size: 16px;
}

.wd-input:focus-visible,
.wd-select:focus-visible { border-color: #eab308; }

.wd-link-btn {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eab308;
    font-size: 12px;
    cursor: pointer;
}

.wd-link-btn:disabled { color: #6b7280; cursor: not-allowed; }
.wd-link-btn:focus-visible { outline: 2px solid #eab308; outline-offset: 2px; }

.wd-hint { margin-top: 6px; color: #6b7280; font-size: 11px; line-height: 1.6; }

/* ---- 提示信息 ---- */
.wd-message { min-height: 20px; margin-bottom: 12px; font-size: 13px; line-height: 1.5; }
.wd-message.is-error { color: #fca5a5; }
.wd-message.is-ok { color: #4ade80; }

/* ---- 按钮 ---- */
.wd-actions { display: flex; gap: 10px; }

.wd-btn {
    flex: 1 1 0;
    min-height: 44px;
    border: 0;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.wd-btn:disabled { opacity: .55; cursor: not-allowed; }
.wd-btn:focus-visible { outline: 2px solid #eab308; outline-offset: 2px; }
.wd-btn-primary { background: #eab308; color: #111; }
.wd-btn-ghost { background: #374151; color: #d1d5db; }

/* ---- 窄屏 ---- */
@media (max-width: 400px) {
    .wd-overlay { align-items: flex-end; padding: 0; }
    .wd-panel { width: 100%; border-radius: 16px 16px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
}
