.nr-screen { --nr-width: 100vw; color: var(--text); background: var(--bg); }
.nr-header { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 16px; background: var(--bg); border-bottom: 1px solid var(--border-soft); }
.nr-header h1 { margin: 0; font-size: 18px; font-weight: 700; line-height: 1.4; }
.nr-back { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; margin-left: -8px; border-radius: 50%; }
.nr-header-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 12px; margin-left: auto; }
.nr-text-button { color: var(--text-mute); font-size: 12px; line-height: 1.4; padding: 8px 0; }
.nr-header > .nr-text-button { margin-left: auto; }
.nr-body { padding: 16px; }
.nr-balance { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; margin-bottom: 16px; border: 1px solid var(--border); border-radius: 16px; background: linear-gradient(120deg,rgba(233,30,140,.12),rgba(245,166,35,.05)),var(--card); }
.nr-balance p { color: var(--text-mute); font-size: 12px; margin-bottom: 4px; }
.nr-balance strong { font-size: 28px; font-weight: 700; overflow-wrap: anywhere; }
.nr-refresh { flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; background: var(--panel); color: var(--text); font-size: 24px; }
.nr-card { padding: 16px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--border-soft); border-radius: 12px; }
.nr-card h2,.nr-card h3,.nr-sheet h3 { margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.nr-card h3 { margin-top: 18px; }
.nr-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.nr-card-head label { font-size: 14px; font-weight: 600; }
.nr-card-head > span { color: var(--text-mute); font-size: 11px; text-align: right; }
.nr-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.nr-method { flex: 1 1 72px; min-width: 0; position: relative; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 9px; padding: 14px 6px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text-mute); font-size: 13px; }
.nr-method svg { width: 24px; height: 24px; color: var(--pink-hot); }
.nr-method.active { border-color: var(--pink-hot); background: rgba(233,30,140,.12); color: var(--text); }
.nr-method.active::after { content: "✓"; position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: var(--pink-hot); color: #fff; font-size: 10px; }
.nr-amount-field { display: flex; align-items: center; gap: 10px; min-height: 70px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
.nr-amount-field:focus-within { border-color: var(--pink-hot); }
.nr-amount-field span { flex-shrink: 0; color: #ff88bf; font-size: 22px; font-weight: 600; }
.nr-amount-field input { width: 100%; min-width: 0; color: var(--text); font-size: 28px; font-weight: 700; }
.nr-amount-field input::placeholder { color: var(--text-faint); }
.nr-chips { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.nr-chips button,.nr-coins button,.nr-bank-list button { min-width: 0; min-height: 40px; padding: 9px 5px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text-mute); font-size: 12px; overflow-wrap: anywhere; }
.nr-chips button.active,.nr-coins button.active,.nr-bank-list button.active { border-color: var(--pink-hot); background: rgba(233,30,140,.16); color: var(--text); }
.nr-coins { display: grid; grid-template-columns: repeat(auto-fit,minmax(90px,1fr)); gap: 8px; margin-bottom: 12px; }
.nr-bank-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; max-height: 240px; overflow-y: auto; margin: 0 0 12px; }
.nr-notes { padding: 16px; border: 1px solid var(--border-soft); border-radius: 12px; background: var(--card); }
.nr-notes h2 { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.nr-notes p { margin-bottom: 8px; color: var(--text-mute); font-size: 12px; line-height: 1.65; }
.nr-notes p:last-child { margin: 0; }
.nr-footer-spacer { height: calc(140px + env(safe-area-inset-bottom,0px)); }
.nr-footer { position: fixed; z-index: 25; bottom: 0; left: 50%; transform: translateX(-50%); width: var(--nr-width); padding: 12px 16px calc(16px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--border); background: var(--bg); }
.nr-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nr-summary strong { font-size: 20px; }
.nr-summary span { color: var(--text-mute); font-size: 12px; }
.nr-validation { min-height: 8px; margin: 4px 0; color: var(--danger); font-size: 12px; }
.nr-footer .btn-grad-block,.nr-sheet .btn-grad-block { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 12px; background: var(--grad); color: #fff; font-size: 15px; font-weight: 600; }
.nr-screen button:disabled { opacity: .5; cursor: default; }
.nr-notice { margin-bottom: 12px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text-mute); font-size: 13px; line-height: 1.6; }
.nr-notice p { margin: 5px 0 12px; }
.nr-secondary { padding: 9px 14px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); font-size: 12px; }
.nr-loading { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 20px 12px; color: var(--text-mute); font-size: 12px; }
.nr-spinner { display: inline-block; flex-shrink: 0; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.25); border-top-color: currentColor; border-radius: 50%; animation: nr-spin .8s linear infinite; }
.nr-muted { color: var(--text-mute); font-size: 12px; line-height: 1.6; }
.nr-record .nr-card-head { margin-bottom: 8px; }
.nr-order-copy { display: block; max-width: 100%; color: var(--text-mute); text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.nr-order-copy span { margin-left: 6px; color: var(--pink-hot); }
.nr-record-amount { display: block; padding: 12px 0 6px; font-size: 22px; }
.nr-status { padding: 3px 8px; border-radius: 999px; background: var(--panel); font-size: 11px; }
.nr-status-success { color: var(--good) !important; }
.nr-status-pending { color: var(--coral) !important; }
.nr-status-cancelled { color: var(--text-dim) !important; }
.nr-empty { padding: 70px 20px; color: var(--text-dim); text-align: center; font-size: 13px; }
.nr-modal { position: fixed; z-index: 300; top: 0; bottom: 0; left: 50%; transform: translateX(-50%); width: var(--nr-width); display: flex; align-items: flex-end; }
.nr-mask { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(0,0,0,.7); }
.nr-sheet { position: relative; width: 100%; max-height: 85vh; max-height: 85dvh; overflow-y: auto; padding: 20px 20px calc(20px + env(safe-area-inset-bottom,0px)); border: 1px solid var(--border); border-radius: 20px 20px 0 0; background: var(--card); }
.nr-sheet h2 { font-size: 17px; font-weight: 600; }
.nr-close { flex-shrink: 0; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel); color: var(--text-mute); font-size: 24px; }
.nr-order-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 16px; padding: 16px; margin: 12px 0; border-radius: 12px; background: var(--panel); }
.nr-order-grid dt { margin-bottom: 4px; color: var(--text-mute); font-size: 12px; }
.nr-order-grid dd { margin: 0; color: var(--text); font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.nr-copy-value { display: block; max-width: 100%; padding: 0; text-align: left; font-size: inherit; overflow-wrap: anywhere; }
.nr-copy-value span { display: inline-block; color: #ff88bf; }
.nr-countdown { font-variant-numeric: tabular-nums; }
.nr-address { padding: 14px; margin: 12px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); }
.nr-address .nr-card-head { margin-bottom: 8px; color: var(--text-mute); font-size: 12px; }
.nr-address strong { color: #ff88bf; font-size: 12px; }
.nr-address .nr-copy-value { font-size: 12px; line-height: 1.65; }
.nr-payment-note { margin: 14px 0 4px; color: var(--text-mute); font-size: 12px; line-height: 1.6; }
.nr-support-link { display: block; margin: 6px 0 16px; color: #ff88bf; font-size: 12px; text-decoration: underline; }
.nr-copy-input { position: fixed; top: 0; left: -9999px; }
.nr-chat { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.nr-chat .nr-header { position: relative; flex-shrink: 0; }
.nr-chat-status { margin-top: 2px; color: var(--text-dim); font-size: 11px; }
.nr-chat-status.online { color: var(--good); }
.nr-chat-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
.nr-chat-message { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 14px; }
.nr-chat-message.mine { align-items: flex-end; }
.nr-chat-bubble { max-width: 90%; padding: 11px 13px; border: 1px solid var(--border-soft); border-radius: 12px 12px 12px 2px; background: var(--card); color: var(--text); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.nr-chat-message.mine .nr-chat-bubble { border-color: rgba(233,30,140,.15); border-radius: 12px 12px 2px 12px; background: var(--panel); }
.nr-chat-bubble p { white-space: pre-wrap; }
.nr-chat-bubble a { color: #ff88bf; }
.nr-chat-bubble img { display: block; width: auto; max-width: 100%; height: auto; max-height: 300px; object-fit: contain; border-radius: 6px; }
.nr-chat-message time { margin-top: 4px; color: var(--text-faint); font-size: 10px; }
.nr-chat-composer { flex-shrink: 0; padding: 12px 16px calc(12px + env(safe-area-inset-bottom,0px)); border-top: 1px solid var(--border); background: var(--bg); }
.nr-chat-compose-row { display: flex; align-items: flex-end; gap: 8px; }
.nr-chat-attach { display: grid; place-items: center; width: 36px; height: 40px; padding: 0; font-size: 24px; }
.nr-chat-compose-row textarea { flex: 1; min-width: 0; height: 40px; max-height: 110px; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); font: inherit; font-size: 13px; resize: vertical; }
.nr-chat-send { min-width: 58px; height: 40px; padding: 8px 12px; border-radius: 10px; background: var(--grad); color: #fff; font-size: 12px; }
.nr-chat-attachments { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 10px; }
.nr-chat-attachments > div { position: relative; }
.nr-chat-attachments img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.nr-chat-attachments button { position: absolute; top: -5px; right: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--pink-hot); color: #fff; }
.nr-screen :is(button,a,input,textarea):focus-visible { outline: 2px solid var(--pink-hot); outline-offset: 3px; }
@keyframes nr-spin { to { transform: rotate(360deg); } }
@media (min-width: 640px) { .nr-screen { --nr-width: 430px; } }
@media (prefers-reduced-motion: reduce) { .nr-spinner { animation: none; } }

/* Recharge and its records use the same treatment as the App's withdrawal views. */
#recharge-screen .nr-header { min-height: 58px; gap: 12px; background: rgba(26,10,26,.96); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
#recharge-screen .nr-header h1 { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: .2px; }
#recharge-screen .nr-back { width: 32px; flex: 0 0 32px; margin-left: -6px; border-radius: 10px; }
#recharge-screen .nr-records-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 10px; background: var(--card); white-space: nowrap; }
#recharge-screen .nr-records-link svg { width: 15px; height: 15px; color: #ff88bf; }
#recharge-screen .nr-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); }
#recharge-screen .nr-balance > div { min-width: 0; }
#recharge-screen .nr-balance p { margin-bottom: 8px; }
#recharge-screen .nr-balance strong { font-size: 30px; letter-spacing: -.6px; line-height: 1.25; font-variant-numeric: tabular-nums; }
#recharge-screen .nr-refresh { display: grid; place-items: center; border-color: rgba(233,30,140,.19); background: rgba(233,30,140,.08); color: #ff88bf; }
#recharge-screen .nr-refresh svg { width: 18px; height: 18px; }
#recharge-screen .nr-card { padding: 18px 16px; margin-bottom: 14px; border-radius: 14px; box-shadow: 0 5px 20px rgba(0,0,0,.06); }
#recharge-screen .nr-section-heading { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
#recharge-screen .nr-section-heading svg { width: 18px; height: 18px; flex: 0 0 18px; color: #ff88bf; }
#recharge-screen .nr-section-heading label { font-size: 13px; }
#recharge-screen .nr-minimum { padding: 4px 7px; border-radius: 6px; background: rgba(233,30,140,.07); color: #cb83a6; font-size: 10px; line-height: 1.5; }
#recharge-screen .nr-methods { margin-top: 16px; gap: 9px; }
#recharge-screen .nr-method { padding: 16px 6px 14px; border-radius: 12px; border-color: var(--border-soft); transition: border-color .15s, background .15s; }
#recharge-screen .nr-method svg { width: 25px; height: 25px; color: #d86ba1; }
#recharge-screen .nr-method.active { border-color: var(--pink-hot); background: linear-gradient(155deg,rgba(233,30,140,.14),rgba(233,30,140,.05)),var(--panel); }
#recharge-screen .nr-method.active svg { color: #ff88bf; }
#recharge-screen .nr-method.active::after { top: 7px; right: 7px; }
#recharge-screen .nr-amount-field { min-height: 74px; margin-top: 16px; padding: 16px 14px; border-radius: 12px; }
#recharge-screen .nr-amount-field:focus-within { box-shadow: 0 0 0 2px rgba(233,30,140,.08); }
#recharge-screen .nr-amount-field input { font-size: 30px; font-variant-numeric: tabular-nums; }
#recharge-screen .nr-chips { margin-top: 14px; gap: 8px; }
#recharge-screen .nr-chips button { min-height: 42px; border-color: var(--border-soft); border-radius: 9px; font-variant-numeric: tabular-nums; }
#recharge-screen .nr-chips button.active { border-color: rgba(233,30,140,.65); color: #ffb7d7; background: rgba(233,30,140,.12); }
#recharge-screen .nr-card h3 { margin-top: 20px; color: var(--text-mute); font-size: 12px; font-weight: 500; }
#recharge-screen .nr-coins { gap: 8px; margin-bottom: 0; }
#recharge-screen .nr-coins button { min-height: 40px; border-color: var(--border-soft); border-radius: 9px; font-size: 11px; }
#recharge-screen .nr-coins button.active { border-color: rgba(233,30,140,.65); background: rgba(233,30,140,.13); color: #ffb7d7; }
#recharge-screen .nr-notes { border-radius: 14px; }
#recharge-screen .nr-notes h2 { color: var(--text-mute); font-size: 13px; font-weight: 600; }
#recharge-screen .nr-notes p { color: var(--text-dim); font-size: 11px; line-height: 1.8; }
#recharge-screen .nr-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); box-shadow: 0 -8px 24px rgba(0,0,0,.16); }
#recharge-screen .nr-summary { margin-bottom: 9px; }
#recharge-screen .nr-summary strong { color: #ff88bf; font-variant-numeric: tabular-nums; }
#recharge-screen .nr-summary > span { padding: 4px 8px; border: 1px solid var(--border-soft); border-radius: 7px; background: var(--card); font-size: 10px; }
#recharge-screen .nr-validation:empty { min-height: 0; margin: 0; }
#recharge-screen .nr-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); }
#recharge-screen .nr-records-overview > div { min-width: 0; }
#recharge-screen .nr-records-overview p { margin-bottom: 8px; color: var(--text-mute); font-size: 11px; }
#recharge-screen .nr-records-overview strong { display: block; margin-bottom: 7px; font-size: 23px; line-height: 1.3; font-weight: 700; }
#recharge-screen .nr-records-overview > div > span { color: var(--text-dim); font-size: 10px; line-height: 1.5; }
#recharge-screen .nr-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; }
#recharge-screen .nr-overview-icon svg { width: 25px; height: 25px; }
#recharge-screen .nr-record-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
#recharge-screen .nr-record-method { display: flex; align-items: center; gap: 10px; min-width: 0; }
#recharge-screen .nr-record-method > strong { min-width: 0; font-size: 13px; overflow-wrap: anywhere; }
#recharge-screen .nr-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; }
#recharge-screen .nr-record-icon svg { width: 18px; height: 18px; }
#recharge-screen .nr-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; }
#recharge-screen .nr-status::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
#recharge-screen .nr-status-pending { background: rgba(245,166,35,.09); }
#recharge-screen .nr-status-success { background: rgba(62,212,126,.09); }
#recharge-screen .nr-status-cancelled { background: rgba(185,164,185,.08); }
#recharge-screen .nr-record-value { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 18px 0 16px; }
#recharge-screen .nr-record-value > span { flex-shrink: 0; color: var(--text-dim); font-size: 11px; }
#recharge-screen .nr-record-amount { min-width: 0; padding: 0; margin: 0; color: var(--text); font-size: 25px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; text-align: right; }
#recharge-screen .nr-record-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; color: var(--text-dim); font-size: 10px; line-height: 1.6; }
#recharge-screen .nr-record-meta time { color: var(--text-mute); text-align: right; }
#recharge-screen .nr-order-copy { display: grid; grid-template-columns: auto minmax(0,1fr) 14px; align-items: center; gap: 8px; width: 100%; max-width: none; padding: 12px 0 0; margin-top: 12px; border-top: 1px solid var(--border-soft); font-size: 10px; }
#recharge-screen .nr-order-copy span { display: block; margin: 0; }
#recharge-screen .nr-order-label { color: var(--text-dim); }
#recharge-screen .nr-order-value { min-width: 0; color: var(--text-mute); text-align: right; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
#recharge-screen .nr-order-copy svg { width: 14px; height: 14px; color: #d179a5; }
#recharge-screen .nr-empty { padding: 45px 16px; border: 1px solid var(--border-soft); border-radius: 14px; background: var(--card); }
#recharge-screen .nr-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); }
#recharge-screen .nr-empty-icon svg { width: 27px; height: 27px; }
#recharge-screen .nr-empty p { margin-bottom: 6px; color: var(--text-mute); font-size: 13px; }
#recharge-screen .nr-empty > span:last-child { color: var(--text-faint); font-size: 11px; }
#recharge-screen .nr-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; }
#recharge-screen .nr-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: nr-page-spin .75s linear infinite; }
#recharge-screen[aria-busy="true"] > :not(.nr-page-loading) { pointer-events: none; }
@keyframes nr-page-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #recharge-screen .nr-loading-spinner { animation-duration: 1.8s; } }
