/* Native withdrawal UI inherits the App's colors and 430px responsive shell. */
#withdraw-app { width: 100%; min-height: 100dvh; font-size: 13px; }
#withdraw-app [hidden] { display: none !important; }
.nw-header { height: 56px; display: grid; grid-template-columns: minmax(74px, 1fr) auto minmax(74px, 1fr); align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--border-soft); }
.nw-header h1 { margin: 0; font-size: 16px; font-weight: 600; text-align: center; }
.nw-back { width: 40px; height: 44px; display: flex; align-items: center; }
.nw-header-actions { display: flex; justify-content: flex-end; gap: 12px; }
.nw-text-button { color: var(--text-mute); font-size: 12px; min-height: 40px; white-space: nowrap; }
.nw-body { padding: 16px; }
.nw-balance { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; margin-bottom: 16px; background: linear-gradient(115deg, rgba(233,30,140,.13), rgba(245,166,35,.03)), var(--card); border: 1px solid var(--border); border-radius: 16px; }
.nw-balance p { color: var(--text-mute); font-size: 12px; margin-bottom: 8px; }
.nw-balance strong { font-size: 28px; font-weight: 700; overflow-wrap: anywhere; }
.nw-refresh { display: grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; color: var(--pink); background: rgba(233,30,140,.1); border: 1px solid rgba(233,30,140,.25); border-radius: 50%; }
.nw-card { padding: 18px 16px; margin-bottom: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; }
.nw-card h2, .nw-card label, .nw-sheet h2 { display: block; margin: 0; font-size: 13px; font-weight: 600; }
.nw-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nw-card-head > span { color: var(--text-dim); font-size: 11px; text-align: right; }
.nw-amount-field { display: flex; gap: 10px; align-items: center; margin-top: 12px; padding: 12px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; }
.nw-amount-field > span { color: var(--text-mute); font-size: 20px; }
.nw-amount-field input { width: 100%; min-width: 0; font-size: 26px; font-weight: 600; }
.nw-amount-field:focus-within, .nw-input:focus { border-color: var(--pink); box-shadow: 0 0 0 2px rgba(233,30,140,.1); }
.nw-input { display: block; width: 100%; min-height: 48px; padding: 12px; margin: 12px 0 16px; background: var(--input-bg); border: 1px solid var(--border); border-radius: 10px; font-size: 15px; }
.nw-card .nw-input:last-child { margin-bottom: 0; }
.nw-amount-field input::placeholder, .nw-input::placeholder { color: var(--text-faint); }
#nw-usdt-address { text-transform: none !important; }
.nw-payout { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px; margin: 12px 0; background: var(--panel); border-radius: 10px; gap: 12px; }
.nw-payout strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.nw-payout p { color: var(--text-mute); font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.nw-selected { color: var(--pink); font-size: 20px; }
.nw-secondary { display: block; width: 100%; padding: 12px; min-height: 44px; border: 1px solid rgba(233,30,140,.3); border-radius: 10px; background: rgba(233,30,140,.07); color: #ff7aba; font-size: 13px; text-align: center; }
.nw-muted { font-size: 12px; color: var(--text-dim); line-height: 1.6; margin: 12px 0; }
.nw-notes { padding: 2px 4px 16px; }
.nw-notes h2 { margin: 0 0 8px; color: var(--text-mute); font-size: 13px; font-weight: 500; }
.nw-notes ul { padding-left: 16px; color: var(--text-dim); font-size: 11px; line-height: 1.8; }
.nw-footer-spacer { height: calc(142px + env(safe-area-inset-bottom, 0px)); }
.nw-footer { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: var(--max); z-index: 55; padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--bg); box-shadow: 0 -8px 24px rgba(0,0,0,.2); }
@media (max-width: 639px) { .nw-footer { max-width: none; } }
.nw-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nw-summary > strong { font-size: 20px; color: #ff7aba; min-width: 0; overflow-wrap: anywhere; }
.nw-summary > div { display: flex; align-items: center; justify-content: flex-end; gap: 6px; max-width: 68%; color: var(--text-mute); font-size: 11px; }
.nw-summary .is-ready { color: var(--good); }
.nw-help { width: 21px; height: 21px; flex-shrink: 0; border-radius: 50%; border: 1px solid rgba(233,30,140,.3); color: #ff7aba; }
.nw-validation { margin: 0; color: var(--coral); font-size: 11px; line-height: 1.5; }
.nw-validation:not(:empty) { margin: 0 0 12px; }
#withdraw-app .btn-grad-block { width: 100%; min-height: 46px; border-radius: 12px; }
#withdraw-app .btn-grad-block:disabled, #withdraw-app button:disabled { opacity: .5; cursor: default; }
#nw-continue.is-incomplete { opacity: .6; }
.nw-empty { padding: 30px 16px; text-align: center; color: var(--text-dim); line-height: 1.7; }
.nw-notice { padding: 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; }
.nw-notice p { margin-bottom: 12px; color: var(--text-mute); line-height: 1.6; }
.nw-notice strong { display: block; margin-bottom: 8px; font-size: 14px; }
.nw-tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 4px; margin-bottom: 18px; }
.nw-tabs button { flex: 1; min-height: 38px; padding: 8px 4px; border-radius: 7px; color: var(--text-mute); font-size: 13px; }
.nw-tabs button.active { background: rgba(233,30,140,.2); color: #ff7aba; }
.nw-bank-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 12px 0 18px; max-height: 240px; overflow-y: auto; }
.nw-bank-list button { padding: 12px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--panel); text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.nw-bank-list button.active { border-color: var(--pink); color: #ff7aba; background: rgba(233,30,140,.1); }
.nw-record-amount { display: block; margin-top: 12px; color: #ff7aba; font-size: 22px; }
.nw-order { display: block; margin-top: 10px; color: var(--text-mute); font-size: 11px; line-height: 1.6; text-align: left; overflow-wrap: anywhere; user-select: text; -webkit-user-select: text; }
.nw-card-head .nw-status-pending, .nw-card-head .nw-status-paying { color: var(--coral); }
.nw-card-head .nw-status-approved { color: var(--good); }
.nw-card-head .nw-status-rejected { color: var(--danger); }
.nw-record .nw-muted { margin-bottom: 0; }
.nw-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: flex-end; justify-content: center; }
.nw-mask { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.65); }
.nw-sheet { position: relative; width: 100%; max-width: var(--max); max-height: 85dvh; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-bottom: 0; border-radius: 20px 20px 0 0; padding: 20px 20px calc(24px + env(safe-area-inset-bottom, 0px)); animation: nw-rise .18s ease-out; }
@media (max-width: 639px) { .nw-sheet { max-width: none; } }
.nw-sheet .nw-card-head { margin-bottom: 20px; }
.nw-sheet h2 { font-size: 16px; }
.nw-close { display: grid; place-items: center; width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; background: var(--panel); color: var(--text-mute); font-size: 24px; }
.nw-confirm-amount { display: block; margin: 20px 0; font-size: 30px; text-align: center; color: #ff7aba; }
.nw-sheet dl { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 20px; }
.nw-sheet dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 12px; border-bottom: 1px solid var(--border); }
.nw-sheet dl > div:last-child { border: 0; }
.nw-sheet dt { color: var(--text-mute); font-size: 12px; }
.nw-sheet dd { min-width: 0; max-width: 60%; overflow-wrap: anywhere; text-align: right; font-size: 12px; }
.nw-help-body { color: var(--text-mute); font-size: 13px; line-height: 1.8; white-space: pre-line; }
.nw-copy-input { position: fixed; left: -9999px; top: 0; font-size: 16px; }
@keyframes nw-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .nw-sheet { animation: none; } }
#support-app { width: 100%; display: flex; flex-direction: column; height: 100dvh; background: var(--bg); }
#support-app .nw-header { flex-shrink: 0; }
.nw-chat-state { padding: 10px 16px; color: var(--text-dim); text-align: center; font-size: 11px; }
.nw-chat-messages { flex: 1; overflow-y: auto; padding: 16px; min-height: 0; }
.nw-chat-message { width: fit-content; max-width: 85%; padding: 12px; margin: 0 auto 14px 0; background: var(--panel); border: 1px solid var(--border); border-radius: 12px 12px 12px 2px; }
.nw-chat-message.is-mine { margin: 0 0 14px auto; background: rgba(233,30,140,.15); border-color: rgba(233,30,140,.3); border-radius: 12px 12px 2px 12px; }
.nw-chat-message p { font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.nw-chat-message img { display: block; width: auto; height: auto; max-width: 100%; max-height: 240px; object-fit: contain; border-radius: 8px; margin: 6px 0; cursor: zoom-in; }
.nw-chat-message time { display: block; margin-top: 6px; color: var(--text-dim); font-size: 10px; }
.nw-chat-composer { display: flex; align-items: center; gap: 10px; flex-shrink: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--border); background: var(--card); }
.nw-chat-composer textarea { flex: 1; min-width: 0; min-height: 42px; max-height: 110px; padding: 11px; resize: none; color: var(--text); font: inherit; font-size: 14px; background: var(--panel); border: 1px solid var(--border); border-radius: 10px; outline: none; }
.nw-chat-composer button { padding: 10px; color: #ff7aba; font-size: 13px; }
.nw-chat-composer button:disabled { opacity: .4; }
.nw-chat-attach { position: relative; overflow: hidden; font-size: 25px; color: var(--text-mute); cursor: pointer; }
.nw-chat-attach input { position: absolute; opacity: 0; inset: 0; cursor: pointer; width: 100%; }
.nw-chat-lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.9); padding: 24px; display: grid; place-items: center; z-index: 1500; }
.nw-chat-lightbox img { width: auto; height: auto; max-width: 100%; max-height: 90dvh; object-fit: contain; }

/* Withdrawal and history share the App's card, spacing and accent treatment. */
#withdraw-app .nw-header { position: sticky; top: 0; z-index: 65; display: flex; gap: 12px; height: 58px; background: rgba(26,10,26,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#withdraw-app .nw-header h1 { flex: 1; text-align: left; font-size: 18px; font-weight: 700; letter-spacing: .2px; }
#withdraw-app .nw-back { width: 32px; flex: 0 0 32px; justify-content: center; margin-left: -6px; border-radius: 10px; }
#withdraw-app .nw-header-actions { margin-left: auto; }
#withdraw-app .nw-records-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 34px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--card); color: var(--text-mute); }
#withdraw-app .nw-records-link svg { width: 15px; height: 15px; color: #ff88bf; }
#withdraw-app .nw-body { padding: 16px; }
#withdraw-app .nw-balance { position: relative; overflow: hidden; padding: 22px 20px; margin-bottom: 16px; border-color: rgba(233,30,140,.17); background: radial-gradient(ellipse at 100% 0,rgba(233,30,140,.14),transparent 70%),linear-gradient(120deg,rgba(233,30,140,.06),rgba(245,166,35,.03)),var(--card); box-shadow: 0 8px 24px rgba(0,0,0,.1); }
#withdraw-app .nw-balance-main { min-width: 0; }
#withdraw-app .nw-balance p { margin-bottom: 8px; color: var(--text-mute); font-size: 12px; }
#withdraw-app .nw-balance strong { font-size: 30px; letter-spacing: -.6px; line-height: 1.25; font-variant-numeric: tabular-nums; }
#withdraw-app .nw-refresh { border: 1px solid rgba(233,30,140,.19); background: rgba(233,30,140,.08); color: #ff88bf; }
#withdraw-app .nw-card { padding: 18px 16px; margin-bottom: 14px; border-color: var(--border-soft); border-radius: 14px; box-shadow: 0 5px 20px rgba(0,0,0,.06); }
#withdraw-app .nw-section-heading { display: flex; align-items: center; gap: 9px; }
#withdraw-app .nw-section-heading svg { width: 18px; height: 18px; flex: 0 0 18px; color: #ff88bf; }
#withdraw-app .nw-section-heading label, #withdraw-app .nw-section-heading span { font-size: 13px; font-weight: 600; }
#withdraw-app .nw-card-head .nw-minimum { padding: 4px 7px; border-radius: 6px; background: rgba(233,30,140,.07); color: #cb83a6; font-size: 10px; line-height: 1.5; }
#withdraw-app .nw-amount-field { min-height: 74px; margin-top: 16px; padding: 16px 14px; border-radius: 12px; background: var(--panel); }
#withdraw-app .nw-amount-field > span { color: #ff88bf; font-size: 22px; font-weight: 600; }
#withdraw-app .nw-amount-field input { font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
#withdraw-app .nw-payout { padding: 14px; margin-top: 16px; border: 1px solid var(--border-soft); border-radius: 12px; }
#withdraw-app .nw-payout p { margin-top: 7px; letter-spacing: 1px; font-variant-numeric: tabular-nums; }
#withdraw-app .nw-selected { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; color: #ff88bf; background: rgba(233,30,140,.13); font-size: 13px; }
#withdraw-app .nw-secondary { display: flex; align-items: center; justify-content: center; gap: 8px; border-color: rgba(233,30,140,.21); background: rgba(233,30,140,.05); border-radius: 10px; color: #ff88bf; }
#withdraw-app .nw-password-card .nw-input { margin-top: 16px; min-height: 50px; border-radius: 12px; font-size: 14px; background: var(--panel); }
#withdraw-app .nw-input:disabled { opacity: .45; }
#withdraw-app .nw-payment-setup { padding: 12px; margin-top: 12px; border: 1px solid rgba(233,30,140,.15); border-radius: 10px; background: rgba(233,30,140,.04); }
#withdraw-app .nw-payment-setup p { margin-bottom: 10px; font-size: 12px; line-height: 1.6; color: var(--text-mute); }
#withdraw-app .nw-payment-setup .nw-secondary { min-height: 38px; padding: 8px; }
#withdraw-app .nw-payment-setup .nw-secondary > span { margin-left: auto; font-size: 19px; line-height: 1; }
#withdraw-app .nw-notes { padding: 16px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--card); }
#withdraw-app .nw-notes h2 { font-size: 13px; font-weight: 600; }
#withdraw-app .nw-notes ul { padding-left: 14px; line-height: 1.8; }
#withdraw-app .nw-notes li + li { margin-top: 5px; }
#withdraw-app .nw-notes li::marker { color: #94516f; }
#withdraw-app .nw-footer { padding-top: 14px; background: rgba(26,10,26,.97); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-top-color: var(--border-soft); }
#withdraw-app .nw-footer .btn-grad-block, #withdraw-app .nw-sheet .btn-grad-block { min-height: 48px; font-size: 15px; font-weight: 600; }
#withdraw-app .nw-summary > strong { font-variant-numeric: tabular-nums; }
#withdraw-app .nw-summary > div { font-size: 11px; }
#withdraw-app .nw-records-overview { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 116px; padding: 20px; margin-bottom: 18px; border: 1px solid rgba(233,30,140,.16); border-radius: 16px; background: radial-gradient(ellipse at 100% 0,rgba(233,30,140,.12),transparent 70%),var(--card); }
#withdraw-app .nw-records-overview > div { min-width: 0; }
#withdraw-app .nw-records-overview p { margin-bottom: 8px; color: var(--text-mute); font-size: 11px; }
#withdraw-app .nw-records-overview strong { display: block; margin-bottom: 7px; font-size: 23px; font-weight: 700; }
#withdraw-app .nw-records-overview > div > span { color: var(--text-dim); font-size: 10px; line-height: 1.5; }
#withdraw-app .nw-overview-icon { display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px; border: 1px solid rgba(233,30,140,.15); border-radius: 15px; background: rgba(233,30,140,.08); color: #ff88bf; }
#withdraw-app .nw-overview-icon svg { width: 25px; height: 25px; }
#withdraw-app .nw-record-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#withdraw-app .nw-record-method { display: flex; align-items: center; gap: 10px; min-width: 0; }
#withdraw-app .nw-record-method > strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
#withdraw-app .nw-record-icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--panel); color: #ff88bf; }
#withdraw-app .nw-status { display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; padding: 5px 8px; border-radius: 999px; font-size: 10px; font-weight: 500; white-space: nowrap; }
#withdraw-app .nw-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
#withdraw-app .nw-status-pending, #withdraw-app .nw-status-paying { color: var(--coral); background: rgba(245,166,35,.09); }
#withdraw-app .nw-status-approved { color: var(--good); background: rgba(62,212,126,.09); }
#withdraw-app .nw-status-rejected { color: var(--danger); background: rgba(255,59,59,.09); }
#withdraw-app .nw-record-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 16px; }
#withdraw-app .nw-record-value > span { flex-shrink: 0; color: var(--text-dim); font-size: 11px; }
#withdraw-app .nw-record-amount { min-width: 0; margin: 0; color: var(--text); font-size: 25px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
#withdraw-app .nw-record-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 10px; line-height: 1.6; }
#withdraw-app .nw-record-meta time { color: var(--text-mute); text-align: right; }
#withdraw-app .nw-order { display: grid; grid-template-columns: auto minmax(0,1fr) 14px; align-items: center; gap: 8px; width: 100%; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--border-soft); font-size: 10px; }
#withdraw-app .nw-order-label { color: var(--text-dim); }
#withdraw-app .nw-order-value { min-width: 0; text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#withdraw-app .nw-order svg { width: 14px; height: 14px; color: #d179a5; }
#withdraw-app .nw-record-reason { padding: 9px 10px; margin-top: 12px; border-radius: 8px; background: var(--panel); color: var(--text-mute); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
#withdraw-app .nw-empty { padding: 45px 16px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--card); }
#withdraw-app .nw-empty-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 16px; border: 1px solid var(--border-soft); border-radius: 17px; color: #a75c80; background: var(--panel); }
#withdraw-app .nw-empty-icon svg { width: 27px; height: 27px; }
#withdraw-app .nw-empty p { color: var(--text-mute); font-size: 13px; margin-bottom: 6px; }
#withdraw-app .nw-empty > span:last-child { color: var(--text-faint); font-size: 11px; }
#withdraw-app .nw-page-loading { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; background: rgba(10,4,10,.12); touch-action: none; overscroll-behavior: contain; cursor: progress; }
#withdraw-app .nw-loading-spinner { display: block; width: 38px; height: 38px; border: 3px solid rgba(233,30,140,.16); border-top-color: var(--pink-hot); border-right-color: rgba(233,30,140,.6); border-radius: 50%; filter: drop-shadow(0 0 7px rgba(233,30,140,.15)); animation: nw-spin .75s linear infinite; }
#withdraw-app[aria-busy="true"] > :not(.nw-page-loading) { pointer-events: none; }
@keyframes nw-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #withdraw-app .nw-loading-spinner { animation-duration: 1.8s; } }
