/* ===========================================================
   WITHDRAW V2 — Frenzy96 player withdrawal (2026-05-30)
   3-step wizard: Bank -> Amount -> Confirm. Mounts into #modal-withdraw.
   Vanilla, English-only. Palette mirrors deposit-v2.
   =========================================================== */
#modal-withdraw.wd-v2 { align-items: flex-end !important; padding: 0 !important; }
.wd-v2 .modal,
.wd-v2 .auth-card { background: transparent !important; box-shadow: none !important; border: 0 !important; padding: 0 !important; margin: 0 !important; max-width: 100% !important; width: 100% !important; box-sizing: border-box; }

.wdw {
  --wd-bg: #0e1014; --wd-card: #14161c; --wd-card2: #181b22; --wd-line: #262a33;
  --wd-gold: #E8A124; --wd-gold-d: #c8881a; --wd-txt: #E8E9EE; --wd-dim: #8a8f9c;
  --wd-ok: #2fa46b; --wd-err: #e0524d; --wd-blue: #3a7bd5;
  background: var(--wd-bg); color: var(--wd-txt); border-radius: 18px 18px 0 0; overflow: hidden;
  width: 100%; max-width: 100%; box-sizing: border-box;
  display: flex; flex-direction: column; max-height: 90vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* header */
.wd-hd { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--wd-line); }
.wd-back { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 10px; border: 1px solid var(--wd-line); background: var(--wd-card); color: var(--wd-txt); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.wd-back svg { width: 20px; height: 20px; }
.wd-title { font-size: 18px; font-weight: 700; flex: 1; }
.wd-bal { text-align: right; line-height: 1.2; }
.wd-bal .l { display: block; font-size: 10px; color: var(--wd-dim); letter-spacing: .04em; text-transform: uppercase; }
.wd-bal .a { display: block; font-size: 16px; font-weight: 700; font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; color: var(--wd-gold); }

/* step indicator */
.wd-steps { display: flex; align-items: center; padding: 12px 18px 4px; gap: 0; }
.wd-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex: 0 0 auto; }
.wd-step .n { width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--wd-card2); color: var(--wd-dim); border: 1px solid var(--wd-line); transition: .2s; }
.wd-step .lab { font-size: 10px; color: var(--wd-dim); letter-spacing: .02em; }
.wd-step.on .n { background: var(--wd-gold); color: #1a1205; border-color: var(--wd-gold); }
.wd-step.on .lab { color: var(--wd-txt); }
.wd-step.done .n { background: rgba(47,164,107,.16); color: var(--wd-ok); border-color: rgba(47,164,107,.5); }
.wd-bar { flex: 1; height: 2px; background: var(--wd-line); margin: 0 6px; position: relative; top: -10px; border-radius: 2px; }
.wd-bar.fill { background: var(--wd-gold); }

/* body */
.wd-body { padding: 8px 16px 4px; overflow-y: auto; flex: 1; box-sizing: border-box; }
.wd-sec-h { font-size: 12px; font-weight: 700; color: var(--wd-dim); text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 8px; }

/* bank cards */
.wd-bank { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1.5px solid var(--wd-line); background: var(--wd-card); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: .15s; }
.wd-bank:active { transform: scale(.995); }
.wd-bank.sel { border-color: var(--wd-gold); background: rgba(232,161,36,.07); }
.wd-bank__ic { width: 40px; height: 40px; flex: 0 0 40px; border-radius: 10px; background: var(--wd-card2); display: flex; align-items: center; justify-content: center; color: var(--wd-gold); }
.wd-bank__ic svg { width: 22px; height: 22px; }
.wd-bank__info { flex: 1; min-width: 0; }
.wd-bank__name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 7px; }
.wd-bank__sub { font-size: 12px; color: var(--wd-dim); font-family: "JetBrains Mono", ui-monospace, monospace; margin-top: 2px; }
.wd-bank__holder { font-size: 11px; color: var(--wd-dim); margin-top: 1px; }
.wd-bank__radio { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 50%; border: 2px solid var(--wd-line); }
.wd-bank.sel .wd-bank__radio { border-color: var(--wd-gold); background: radial-gradient(circle, var(--wd-gold) 0 5px, transparent 6px); }
.wd-badge { font-size: 9px; font-weight: 800; padding: 2px 7px; border-radius: 20px; background: rgba(232,161,36,.16); color: var(--wd-gold); letter-spacing: .04em; }

.wd-addnew { display: flex; align-items: center; justify-content: flex-start; gap: 10px; width: 100%; height: 44px; padding: 0 14px; border: 1.5px dashed var(--wd-line); background: transparent; color: var(--wd-gold); border-radius: 10px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: 2px; box-sizing: border-box; }
.wd-addnew svg { width: 18px; height: 18px; flex: 0 0 18px; }

.wd-empty { text-align: center; padding: 30px 16px; }
.wd-empty__ic { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--wd-card2); display: flex; align-items: center; justify-content: center; color: var(--wd-dim); }
.wd-empty__ic svg { width: 30px; height: 30px; }
.wd-empty__t { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.wd-empty__s { font-size: 12px; color: var(--wd-dim); margin-bottom: 16px; line-height: 1.5; }

/* wager gate */
.wd-wager { border-radius: 12px; padding: 14px; margin-bottom: 14px; }
.wd-wager.ok { background: rgba(47,164,107,.08); border: 1px solid rgba(47,164,107,.4); }
.wd-wager.bad { background: rgba(224,82,77,.08); border: 1px solid rgba(224,82,77,.45); }
.wd-wager__h { font-size: 13px; font-weight: 700; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.wd-wager.ok .wd-wager__h { color: var(--wd-ok); }
.wd-wager.bad .wd-wager__h { color: var(--wd-err); }
.wd-wager__track { height: 8px; background: rgba(0,0,0,.35); border-radius: 6px; overflow: hidden; margin: 8px 0 6px; }
.wd-wager__fill { height: 100%; background: var(--wd-gold); border-radius: 6px; transition: width .3s; }
.wd-wager.ok .wd-wager__fill { background: var(--wd-ok); }
.wd-wager__row { display: flex; justify-content: space-between; font-size: 11px; color: var(--wd-dim); font-family: "JetBrains Mono", ui-monospace, monospace; }

/* amount */
.wd-amt-wrap { border: 1.5px solid var(--wd-line); background: var(--wd-card); border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 6px; margin-bottom: 12px; transition: .15s; }
.wd-amt-wrap.foc { border-color: var(--wd-gold); }
.wd-amt-wrap .cur { font-size: 26px; font-weight: 700; color: var(--wd-dim); }
.wd-amt-wrap input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--wd-txt); font-size: 30px; font-weight: 700; font-family: "JetBrains Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
.wd-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 14px; }
.wd-quick button { padding: 10px 4px; border: 1px solid var(--wd-line); background: var(--wd-card); color: var(--wd-txt); border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: "JetBrains Mono", ui-monospace, monospace; }
.wd-quick button.on { border-color: var(--wd-gold); background: rgba(232,161,36,.1); color: var(--wd-gold); }
.wd-slider { width: 100%; margin: 4px 0 6px; accent-color: var(--wd-gold); }
.wd-amt-help { display: flex; justify-content: space-between; font-size: 11px; color: var(--wd-dim); margin-bottom: 4px; }
.wd-amt-help b { color: var(--wd-txt); font-family: "JetBrains Mono", ui-monospace, monospace; }

/* confirm summary */
.wd-sum { background: var(--wd-card); border: 1px solid var(--wd-line); border-radius: 12px; padding: 4px 14px; margin-bottom: 12px; }
.wd-sum__row { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--wd-line); font-size: 13px; }
.wd-sum__row:last-child { border-bottom: 0; }
.wd-sum__row .k { color: var(--wd-dim); }
.wd-sum__row .v { font-weight: 600; text-align: right; }
.wd-sum__row.big .v { font-size: 22px; font-weight: 800; color: var(--wd-gold); font-family: "JetBrains Mono", ui-monospace, monospace; }
.wd-mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.wd-notice { display: flex; gap: 10px; padding: 12px 14px; background: rgba(58,123,213,.08); border: 1px solid rgba(58,123,213,.35); border-radius: 12px; margin-bottom: 12px; font-size: 12px; line-height: 1.5; color: var(--wd-txt); }
.wd-notice.warn { background: rgba(232,161,36,.08); border-color: rgba(232,161,36,.4); }
.wd-notice svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 1px; color: var(--wd-blue); }
.wd-notice.warn svg { color: var(--wd-gold); }
.wd-err { background: rgba(224,82,77,.1); border: 1px solid rgba(224,82,77,.45); color: #f1a09c; border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 12px; }

/* footer */
.wd-ft { padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid var(--wd-line); display: flex; gap: 8px; box-sizing: border-box; }
.wd-btn { flex: 1 1 0; min-width: 0; padding: 14px; border-radius: 12px; font-size: 15px; font-weight: 700; cursor: pointer; border: 1px solid var(--wd-line); background: var(--wd-card); color: var(--wd-txt); box-sizing: border-box; }
.wd-btn--primary { background: var(--wd-gold); color: #1a1205; border-color: var(--wd-gold); }
.wd-btn--primary:disabled { opacity: .4; cursor: not-allowed; }
.wd-btn--ghost { flex: 1 1 0; min-width: 0; }

/* success */
.wd-done { text-align: center; padding: 36px 20px; }
.wd-done__ic { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; background: rgba(47,164,107,.14); color: var(--wd-ok); display: flex; align-items: center; justify-content: center; }
.wd-done__ic svg { width: 40px; height: 40px; }
.wd-done__t { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.wd-done__s { font-size: 13px; color: var(--wd-dim); line-height: 1.6; margin-bottom: 6px; }
.wd-done__amt { font-size: 30px; font-weight: 800; color: var(--wd-gold); font-family: "JetBrains Mono", ui-monospace, monospace; margin: 10px 0; }
.wd-done__tx { font-size: 11px; color: var(--wd-dim); font-family: "JetBrains Mono", ui-monospace, monospace; }

/* toast (shared w/ deposit if present, else local) */
.wd-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 99999; color: #fff; padding: 11px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; box-shadow: 0 8px 28px rgba(0,0,0,.4); max-width: 88vw; }
