/* ==========================================================================
   PLIXWIN – Wallet v2: clean Deposit / Withdraw (permanent crypto addresses)
   Flat and simple: tabs, Currency + Network dropdowns, address with copy,
   QR, one warning line. No glass, no gloss.
   ========================================================================== */
.pxw {
  --w-field: #0A222D; --w-field-2: #0F2B38; --w-line: #143544; --w-line-2: #1E4557;
  --w-text: #EEF3F6; --w-text-2: #C3D4DE; --w-muted: #7F9CAD; --w-green: #00B175; --w-green-2: #00C784;
  --w-red: #FF6B6B;
  color: var(--w-text); font-family: var(--pa-font, 'Manrope', system-ui, sans-serif);
  max-width: 620px;
}
.pxw *, .pxw *::before, .pxw *::after { box-sizing: border-box; }
.pxw button { font-family: inherit; }
.pxw .px-ic-svg { width: 18px; height: 18px; flex: none; }

/* ---- Deposit / Withdraw / Transfer ---- */
.pxw-tabs { display: flex; gap: 26px; margin: -4px 0 20px; border-bottom: 1px solid var(--w-line); overflow-x: auto; scrollbar-width: none; }
.pxw-tabs::-webkit-scrollbar { display: none; }
.pxw-tabs button { position: relative; height: 44px; padding: 0 2px; border: 0; background: none; color: var(--w-muted); font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: color .15s; }
.pxw-tabs button:hover { color: var(--w-text-2); }
.pxw-tabs button.is-on { color: var(--w-text); }
.pxw-tabs button.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--w-green); }

/* ---- Crypto / UPI switch ---- */
.pxw-methods { display: flex; gap: 8px; margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.pxw-methods::-webkit-scrollbar { display: none; }
.pxw-methods button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 1px solid var(--w-line); border-radius: 10px; background: var(--w-field); color: var(--w-text-2); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s; }
.pxw-methods button:hover { border-color: var(--w-line-2); color: var(--w-text); }
.pxw-methods button.is-on { border-color: var(--w-green); background: rgba(0, 177, 117, .1); color: var(--w-text); }
.pxw-methods button.is-on .px-ic-svg { color: var(--w-green-2); }

/* ---- fields ---- */
.pxw-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pxw-field { margin: 0 0 16px; min-width: 0; }
.pxw-label { display: block; margin: 0 0 8px; color: var(--w-text-2); font-size: 13px; font-weight: 600; line-height: 1.3; }
.pxw-label em { font-style: normal; font-weight: 600; margin-left: 6px; }
.pxw-req { color: #FFB020; }
.pxw-opt { color: var(--w-muted); }
.pxw-label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pxw-avail { margin-bottom: 8px; color: var(--w-muted); font-size: 13px; white-space: nowrap; }
.pxw-avail b { color: var(--w-text); font-weight: 700; }

/* ---- dropdowns ---- */
.pxw-dd { position: relative; }
.pxw-trig { display: flex; align-items: center; gap: 10px; width: 100%; height: 52px; padding: 0 14px 0 12px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-field); color: var(--w-text); text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.pxw-trig:hover { border-color: var(--w-line-2); }
.pxw-dd.is-open .pxw-trig { border-color: var(--w-green); }
.pxw-dd.is-single .pxw-trig { cursor: default; }
.pxw-dd.is-single .pxw-trig:hover { border-color: var(--w-line); }
.pxw-trig:disabled { opacity: 1; }
.pxw-tx { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1; }
.pxw-tx b { font-size: 15px; font-weight: 700; color: var(--w-text); white-space: nowrap; }
.pxw-tx small { overflow: hidden; color: var(--w-muted); font-size: 13px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.pxw-caret { flex: none; width: 18px; height: 18px; margin-left: auto; fill: none; stroke: var(--w-muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.pxw-dd.is-open .pxw-caret { transform: rotate(180deg); }
.pxw-pop { position: absolute; z-index: 40; top: calc(100% + 6px); left: 0; right: 0; padding: 6px; border: 1px solid var(--w-line-2); border-radius: 12px; background: #0B2430; box-shadow: 0 18px 40px -12px rgba(0, 6, 10, .8); }
.pxw-pop[hidden] { display: none; }
.pxw-search { display: flex; align-items: center; gap: 8px; height: 40px; margin: 0 0 6px; padding: 0 12px; border: 1px solid var(--w-line); border-radius: 9px; background: #061A23; color: var(--w-muted); }
.pxw-search .px-ic-svg { width: 16px; height: 16px; }
.pxw-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--w-text); font: 600 14px/1 inherit; }
.pxw-search input::-webkit-search-cancel-button { display: none; }
.pxw-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--w-line-2) transparent; }
.pxw-list button { display: flex; align-items: center; gap: 10px; width: 100%; height: 46px; padding: 0 10px; border: 0; border-radius: 9px; background: none; color: var(--w-text); text-align: left; cursor: pointer; }
.pxw-list button:hover { background: var(--w-field-2); }
.pxw-list button.is-on { background: rgba(0, 177, 117, .1); }
.pxw-list button > .px-ic-svg { margin-left: auto; color: var(--w-green-2); }
.pxw-none { margin: 0; padding: 16px; color: var(--w-muted); font-size: 13px; text-align: center; }

/* coin pictures */
.pxw-ico { position: relative; display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--c, #2A4A5A); color: #fff; overflow: hidden; }
.pxw-ico i { font-style: normal; font-size: 14px; font-weight: 800; line-height: 1; }
.pxw-ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; background: #0B2430; }
.pxw-list .pxw-ico { width: 26px; height: 26px; }

/* ---- deposit address ---- */
.pxw-addr { display: flex; align-items: center; gap: 6px; min-height: 52px; padding: 6px 6px 6px 14px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-field); }
.pxw-addr code { flex: 1; min-width: 0; padding: 6px 0; color: var(--w-text); font: 600 14px/1.45 var(--pa-font, 'Manrope', system-ui, sans-serif); letter-spacing: .1px; word-break: break-all; user-select: all; }
.pxw-addr.is-loading { padding-right: 14px; }
.pxw-skel { display: block; width: 100%; height: 14px; border-radius: 7px; background: linear-gradient(90deg, #12313F 0%, #1A4153 50%, #12313F 100%); background-size: 200% 100%; animation: pxw-shine 1.2s linear infinite; }
@keyframes pxw-shine { to { background-position: -200% 0; } }
.pxw-icbtn { display: grid; place-items: center; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 9px; background: var(--w-field-2); color: var(--w-text-2); cursor: pointer; transition: background .15s, color .15s; }
.pxw-icbtn:hover { background: #17394A; color: var(--w-text); }
.pxw-icbtn.is-copied { color: var(--w-green-2); }
.pxw-icbtn:disabled { cursor: default; opacity: .7; }
.pxw-icbtn.is-spin .px-ic-svg { animation: pxw-spin .8s linear infinite; }
@keyframes pxw-spin { to { transform: rotate(360deg); } }

.pxw-warn { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(255, 107, 107, .28); border-radius: 12px; background: rgba(255, 107, 107, .08); color: #FF9C9C; }
.pxw-warn .px-ic-svg { margin-top: 1px; color: var(--w-red); }
.pxw-warn p { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.pxw-warn b { color: #FFC9C9; }

.pxw-qr { display: grid; place-items: center; width: 168px; height: 168px; margin: 0 auto 14px; padding: 10px; border-radius: 14px; background: #fff; }
.pxw-qr svg { display: block; width: 100%; height: 100%; }
.pxw-qr.is-loading { background: var(--w-field); border: 1px solid var(--w-line); }
.pxw-min { margin: 0 0 4px; color: var(--w-muted); font-size: 13.5px; text-align: center; }
.pxw-min b { color: var(--w-text); }
.pxw-note { max-width: 420px; margin: 0 auto; color: var(--w-muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.pxw-note b { color: var(--w-text-2); }

.pxw-err { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 16px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-field); text-align: center; }
.pxw-err .px-ic-svg { width: 24px; height: 24px; color: #FFB020; }
.pxw-err p { margin: 0; color: var(--w-text-2); font-size: 14px; }
.pxw-err button { height: 38px; padding: 0 18px; border: 1px solid var(--w-line-2); border-radius: 9px; background: var(--w-field-2); color: var(--w-text); font-weight: 700; cursor: pointer; }

.pxw-history { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 20px auto 0; padding: 8px 12px; border: 0; border-radius: 9px; background: none; color: var(--w-muted); font-size: 14px; font-weight: 700; cursor: pointer; transition: color .15s, background .15s; }
.pxw-history:hover { color: var(--w-text); background: var(--w-field); }

/* ---- withdraw ---- */
.pxw-form { margin: 0; }
.pxw-inp { display: flex; align-items: center; gap: 6px; height: 52px; padding: 0 6px 0 14px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-field); transition: border-color .15s; }
.pxw-inp:focus-within { border-color: var(--w-green); }
.pxw-inp input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none; color: var(--w-text); font: 600 15px/1 var(--pa-font, 'Manrope', system-ui, sans-serif); }
.pxw-inp input::placeholder { color: #557585; font-weight: 500; }
.pxw-inp input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.pxw-inp input::-webkit-outer-spin-button, .pxw-inp input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pxw-sym { color: var(--w-muted); font-size: 16px; font-weight: 800; }
.pxw-amt { padding-right: 14px; }
.pxw-pct { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 8px; }
.pxw-pct button { height: 36px; border: 1px solid var(--w-line); border-radius: 9px; background: var(--w-field); color: var(--w-text-2); font-size: 13px; font-weight: 700; cursor: pointer; transition: border-color .15s, color .15s; }
.pxw-pct button:hover { border-color: var(--w-line-2); color: var(--w-text); }
.pxw-fees { display: grid; gap: 8px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--w-line); border-radius: 12px; }
.pxw-fees div { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.pxw-fees span { color: var(--w-muted); }
.pxw-fees b { color: var(--w-text); font-weight: 700; }
.pxw-wagerhost[hidden] { display: none; }
.pxw-wager { margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--w-line); border-radius: 12px; background: var(--w-field); }
.pxw-wager-top { display: flex; align-items: center; gap: 8px; color: var(--w-text-2); font-size: 13.5px; font-weight: 700; }
.pxw-wager-top > .px-ic-svg { width: 16px; height: 16px; color: #FFB020; }
.pxw-wager-top b { margin-left: auto; color: var(--w-green-2); }
.pxw-info { display: grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--w-muted); cursor: pointer; }
.pxw-info:hover, .pxw-info[aria-expanded="true"] { color: var(--w-text); background: var(--w-field-2); }
.pxw-info .px-ic-svg { width: 16px; height: 16px; }
.pxw-bar { height: 6px; margin: 10px 0 8px; border-radius: 3px; background: var(--w-line); overflow: hidden; }
.pxw-bar i { display: block; height: 100%; border-radius: 3px; background: var(--w-green); }
.pxw-wager p { margin: 0; color: var(--w-muted); font-size: 12.5px; line-height: 1.5; }
.pxw-wager p b { color: var(--w-text); }
.pxw-wager .pxw-rule { margin-top: 6px; }
.pxw-btn { display: flex; align-items: center; justify-content: center; width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--w-green); color: #fff; font-size: 16px; font-weight: 800; cursor: pointer; transition: background .15s, opacity .15s; }
.pxw-btn:hover { background: var(--w-green-2); }
.pxw-btn:disabled { opacity: .6; cursor: default; }
.pxw-foot { margin: 12px 0 0; color: var(--w-muted); font-size: 12.5px; line-height: 1.5; text-align: center; }
.pxw-foot b { color: var(--w-text-2); }
.pxw .pxa-form-error { margin: 0 0 14px; }

/* other methods (UPI, bank, transfer ...) keep their forms, drawn in the same flat style */
.pxa-acc .pxw-content > .pxa-card, .pxa-acc .pxw-body > .pxa-card { margin-top: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; }
.pxa-acc .pxw .pxa-field > span { color: var(--w-text-2); font-size: 13px; }
.pxa-acc .pxw .pxa-input { height: 52px; border-radius: 12px !important; border: 1px solid var(--w-line) !important; background: var(--w-field) !important; box-shadow: none !important; }
.pxa-acc .pxw .pxa-input:focus-within { border-color: var(--w-green) !important; }
.pxa-acc .pxw .pxa-quick button { border-radius: 9px !important; border: 1px solid var(--w-line) !important; background: var(--w-field) !important; color: var(--w-text-2) !important; }
.pxa-acc .pxw .pxa-quick button:hover { border-color: var(--w-line-2) !important; color: var(--w-text) !important; }
.pxa-acc .pxw .pxa-btn-gold { height: 52px; border-radius: 12px !important; background: var(--w-green) !important; color: #fff !important; box-shadow: none !important; font-weight: 800 !important; filter: none !important; }
.pxa-acc .pxw .pxa-btn-gold:hover:not(:disabled) { background: var(--w-green-2) !important; }

@media (max-width: 640px) {
  .pxw-tabs { gap: 22px; margin-bottom: 16px; }
  .pxw-pick { grid-template-columns: 1fr; gap: 0; }
  .pxw-qr { width: 156px; height: 156px; }
}
@media (prefers-reduced-motion: reduce) {
  .pxw *, .pxw *::before, .pxw *::after { animation: none !important; transition: none !important; }
}
.pxw-qr .pxa-muted { color: #46606E; font-size: 12px; line-height: 1.4; text-align: center; }
