/* ========== Deposit Crypto (nx-deposit) ========== */
#section-deposit {
  --nxd-accent: #3179ff;
  --nxd-accent-hover: #2563eb;
  --nxd-accent-soft: rgba(49, 121, 255, 0.12);
  --nxd-accent-border: rgba(49, 121, 255, 0.35);
  --nxd-card: #ffffff;
  --nxd-page: var(--gray-50, #f8fafc);
  --nxd-border: var(--gray-200, #e5e7eb);
  --nxd-text: var(--gray-900, #111827);
  --nxd-muted: var(--gray-500, #6b7280);
  --nxd-warn-bg: #fff8eb;
  --nxd-warn-border: #f5d78e;
  --nxd-warn-text: #8a5a00;
  --nxd-danger: #dc2626;
  --nxd-success: #16a34a;
  --nxd-radius: 12px;
  --nxd-item-border: #e4eaf1;
  --nxd-item-text: #314e70;
  --nxd-item-hover: #edf2f9;
  /* Typography scale aligned with Wallet (nx-wallet) */
  --nxd-fs-xs: 12px;
  --nxd-fs-sm: 14px;
  --nxd-fs-md: 16px;
  --nxd-fs-lg: 18px;
  --nxd-fs-xl: 22px;
  --nxd-lh-sm: 20px;
  --nxd-lh-md: 24px;
}

body.dark-mode #section-deposit {
  --nxd-card: #000000;
  --nxd-page: #0c0c0c;
  --nxd-border: #2a2a2a;
  --nxd-text: #f3f4f6;
  --nxd-muted: #9ca3af;
  --nxd-accent-soft: rgba(49, 121, 255, 0.16);
  --nxd-accent-border: rgba(49, 121, 255, 0.45);
  --nxd-warn-bg: rgba(245, 158, 11, 0.12);
  --nxd-warn-border: rgba(245, 158, 11, 0.35);
  --nxd-warn-text: #fbbf24;
  --nxd-item-border: #2a2a2a;
  --nxd-item-text: #c5d0dc;
  --nxd-item-hover: rgba(49, 121, 255, 0.12);
}

#section-deposit .nxd-root {
  margin-top: 0;
}

.nxd-root {
  margin-top: 4px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.nxd-main {
  min-width: 0;
  width: 100%;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: stretch;
  box-sizing: border-box;
}

.nxd-main-card {
  background: var(--nxd-card);
  border: 1px solid var(--nxd-border);
  border-radius: 14px;
  padding: 28px 28px 22px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

/* Horizontal numbered stepper (reference) */
.nxd-hstepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  margin: 0 0 28px;
  padding: 0 4px 24px;
  border-bottom: 1px solid var(--nxd-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nxd-hstep {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-shrink: 0;
  color: var(--nxd-muted);
  height: 32px;
}

.nxd-hstep-check {
  display: none;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
}

.nxd-hstep-check svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: #5cb85c;
  position: relative;
  z-index: 2;
}

.nxd-hstep-check::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  background-color: var(--nxd-card, #fff);
  transform: translate(-50%, -50%);
}

.nxd-hstep-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--nxd-card);
  box-shadow: 0 5px 15px rgba(32, 39, 63, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: #7e91a7;
  flex: 0 0 32px;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}

body.dark-mode .nxd-hstep-num {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
  color: #9ca3af;
}

.nxd-hstep-label {
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  white-space: nowrap;
  letter-spacing: 0;
  color: #7e91a7;
}

body.dark-mode .nxd-hstep-label {
  color: #9ca3af;
}

.nxd-hstep-line {
  flex: 1 1 24px;
  min-width: 16px;
  height: 1px;
  background: #e1e5eb;
  margin: 0 12px 0 30px;
  align-self: center;
}

body.dark-mode .nxd-hstep-line {
  background: #2a2a2a;
}

.nxd-hstep-line.is-done {
  background: #e1e5eb;
}

body.dark-mode .nxd-hstep-line.is-done {
  background: #2a2a2a;
}

.nxd-hstep.is-done {
  color: #025b44;
}

.nxd-hstep.is-done .nxd-hstep-num {
  display: none;
}

.nxd-hstep.is-done .nxd-hstep-check {
  display: block;
}

.nxd-hstep.is-done .nxd-hstep-label {
  color: #025b44;
  font-weight: 500;
}

body.dark-mode .nxd-hstep.is-done .nxd-hstep-label {
  color: #5cb85c;
}

body.dark-mode .nxd-hstep.is-done .nxd-hstep-check svg {
  fill: #5cb85c;
}

.nxd-hstep.is-active {
  color: #2a5885;
}

.nxd-hstep.is-active .nxd-hstep-num {
  background: var(--nxd-accent);
  color: #fff;
  box-shadow: 0 5px 15px rgba(32, 39, 63, 0.1);
}

.nxd-hstep.is-active .nxd-hstep-label {
  color: #2a5885;
  font-weight: 500;
}

body.dark-mode .nxd-hstep.is-active .nxd-hstep-label {
  color: #93c5fd;
}

.nxd-form {
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.nxd-form-nav {
  margin: 0 0 18px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--nxd-border);
}

.nxd-form-nav[hidden] {
  display: none !important;
}

.nxd-prev-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  padding: 0;
  margin: 0 0 10px;
  border: none;
  background: transparent;
  cursor: pointer;
  font: inherit;
  color: #8ea5c0;
}

.nxd-form-nav .nxd-prev-btn {
  margin-bottom: 0;
}

.nxd-prev-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  border-radius: 8px;
  background: #e5ebf1;
  color: #8ea5c0;
  transition: background-color 0.2s ease;
}

body.dark-mode .nxd-prev-btn__icon {
  background: #1a1a1a;
  color: #9ca3af;
}

.nxd-prev-btn:hover .nxd-prev-btn__icon {
  background: #eef1f5;
}

body.dark-mode .nxd-prev-btn:hover .nxd-prev-btn__icon {
  background: #222;
}

.nxd-prev-btn__text {
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: #8ea5c0;
}

/* Step 2 — two-column deposit amount (reference layout) */
.nxd-step2-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 20px;
  align-items: start;
}

.nxd-step2-col--main {
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(32, 39, 63, 0.05);
}

body.dark-mode .nxd-step2-col--main {
  background: #000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nxd-pinfo {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  margin: 8px 0 12px;
  align-items: center;
}

.nxd-pinfo__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nxd-pinfo__img-wrap img {
  max-width: 100px;
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

.nxd-pinfo__item-title {
  margin-bottom: 6px;
  font-size: var(--nxd-fs-md);
  font-weight: 500;
  line-height: var(--nxd-lh-md);
  color: #2a5885;
}

body.dark-mode .nxd-pinfo__item-title {
  color: #93c5fd;
}

.nxd-pinfo__item-title strong {
  font-weight: 500;
}

.nxd-pinfo__item {
  font-size: var(--nxd-fs-sm);
  line-height: var(--nxd-lh-sm);
  color: #8ea5c0;
  margin-bottom: 2px;
}

.nxd-pinfo__item strong {
  font-weight: 500;
  color: var(--nxd-text);
}

.nxd-step2-amount {
  margin-top: 4px;
}

.nxd-step2-amount-label {
  display: block;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: var(--nxd-text);
  margin-bottom: 6px;
}

.nxd-step2-amount .nxd-amount-prefix {
  font-size: var(--nxd-fs-md);
  left: 12px;
}

.nxd-step2-amount .nxd-amount-wrap input {
  padding: 10px 12px 10px 28px;
  font-size: var(--nxd-fs-md);
  font-weight: 500;
  border-radius: 8px;
}

.nxd-step2-col--side {
  min-width: 0;
}

/* Matches reference .deposit-account / .youll-get-block / .btn-green-light */
.nxd-deposit-account {
  border-radius: 10px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 5px 10px rgba(32, 39, 63, 0.1);
  color: #314e70;
  margin-bottom: 12px;
  box-sizing: border-box;
}

body.dark-mode .nxd-deposit-account {
  background: #000;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.35);
  color: #c5d0dc;
}

.nxd-youll-get {
  margin: 0 0 16px;
}

.nxd-youll-get__title {
  display: flex;
  align-items: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
  color: #8ea5c0;
  margin: 0 0 4px;
}

body.dark-mode .nxd-youll-get__title {
  color: #9ca3af;
}

.nxd-youll-get__sum {
  font-weight: 700;
  font-size: 24px;
  line-height: 33px;
  color: #2a5885;
  margin: 0;
  letter-spacing: 0;
}

body.dark-mode .nxd-youll-get__sum {
  color: #93c5fd;
}

.nxd-submit-wrap {
  margin: 0;
}

/*
 * Exact match for Pocket Option:
 * button.btn.btn-green-light.btn-block.js-submit-btn
 * display:inline-block; padding:7px 16px; 14px/400; lh 20px;
 * amount:inline; rate:display:block; margin-left:4px → ~56px tall
 */
#section-deposit #nxdStep2Next.nxd-btn-continue-pay,
#section-deposit .nxd-btn-continue-pay {
  appearance: none !important;
  -webkit-appearance: none !important;
  display: inline-block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 7px 16px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border: 1px solid #5cb85c !important;
  border-radius: 10px !important;
  background: #5cb85c !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  letter-spacing: normal !important;
  text-align: center !important;
  white-space: normal !important;
  vertical-align: middle !important;
  box-shadow: none !important;
  cursor: pointer;
  gap: unset !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  align-items: unset !important;
  justify-content: unset !important;
  transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease;
}

#section-deposit #nxdStep2Next.nxd-btn-continue-pay:hover:not(:disabled),
#section-deposit .nxd-btn-continue-pay:hover:not(:disabled) {
  background: #4cae4c !important;
  border-color: #4cae4c !important;
  color: #fff !important;
}

#section-deposit #nxdStep2Next.nxd-btn-continue-pay:disabled,
#section-deposit .nxd-btn-continue-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#section-deposit .nxd-btn-continue-pay .nxd-btn-amount {
  display: inline !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
}

#section-deposit .nxd-btn-continue-pay .nxd-btn-rate {
  display: block !important;
  margin-left: 4px !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  white-space: nowrap !important;
}

#section-deposit .nxd-btn-continue-pay .nxd-btn-rate[hidden] {
  display: none !important;
}

.nxd-sum-offers {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.nxd-sum-offers .nxd-quick-amt {
  width: 100%;
  min-height: 40px;
  padding: 10px 8px;
  border-radius: 8px;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  background: #f3f6fa;
  color: var(--nxd-text);
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
  box-sizing: border-box;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

body.dark-mode .nxd-sum-offers .nxd-quick-amt {
  background: #111;
  border-color: #2a2a2a;
  color: var(--nxd-text);
}

.nxd-sum-offers .nxd-quick-amt:hover {
  border-color: var(--nxd-accent);
  background: var(--nxd-accent-soft);
  color: var(--nxd-accent);
}

.nxd-sum-offers .nxd-quick-amt.is-selected,
.nxd-sum-offers .nxd-quick-amt[aria-pressed="true"] {
  border-color: rgba(49, 121, 255, 0.45);
  background: rgba(49, 121, 255, 0.16);
  color: var(--nxd-accent);
}

.nxd-sum-offers .nxd-quick-amt.is-selected:hover,
.nxd-sum-offers .nxd-quick-amt[aria-pressed="true"]:hover {
  border-color: rgba(49, 121, 255, 0.55);
  background: rgba(49, 121, 255, 0.22);
  color: var(--nxd-accent);
}

body.dark-mode .nxd-sum-offers .nxd-quick-amt.is-selected,
body.dark-mode .nxd-sum-offers .nxd-quick-amt[aria-pressed="true"] {
  border-color: rgba(49, 121, 255, 0.5);
  background: rgba(49, 121, 255, 0.2);
  color: #93c5fd;
}

body.dark-mode .nxd-sum-offers .nxd-quick-amt.is-selected:hover,
body.dark-mode .nxd-sum-offers .nxd-quick-amt[aria-pressed="true"]:hover {
  background: rgba(49, 121, 255, 0.28);
  color: #93c5fd;
}

/* Step 3 — payment-complete (tight, balanced layout) */
.nxd-main-card:has([data-nxd-panel="3"].is-active) {
  padding-bottom: 0;
  overflow: hidden;
}

/* Continue sits in the same gray band as the transfer form — no white void */
.nxd-main-card:has([data-nxd-panel="3"].is-active) .nxd-actions {
  margin: 0 -28px;
  padding: 4px 28px 20px;
  background: #f9fafc;
}

body.dark-mode .nxd-main-card:has([data-nxd-panel="3"].is-active) .nxd-actions {
  background: #0c0c0c;
}

.nxd-payment-complete {
  position: relative;
  padding: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.nxd-payment-complete .nxd-prev-btn {
  margin-bottom: 10px;
}

.nxd-pc-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 0 12px;
}

.nxd-pc-header__logo {
  flex: 0 0 96px;
  max-width: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nxd-pc-header__logo img {
  max-width: 72px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nxd-pc-header__stats {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  min-width: 0;
  background: var(--nxd-card);
}

.nxd-pc-header__col + .nxd-pc-header__col {
  border-left: 1px solid var(--nxd-item-border, #e4eaf1);
}

.nxd-pc-header__amount {
  font-weight: 500;
  font-size: var(--nxd-fs-md);
  line-height: 1.3;
  color: var(--nxd-text);
  letter-spacing: -0.01em;
}

.nxd-pc-header__title {
  font-size: 13px;
  line-height: 1.3;
  color: #8ea5c0;
  margin-top: 2px;
}

.nxd-pc-warn {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  max-width: none;
  margin: 0;
  border: 1px dashed #f2ba69;
  border-radius: 8px;
  background: #fdf3e5;
  color: #314e70;
  font-size: var(--nxd-fs-sm);
  line-height: 1.5;
  padding: 10px 14px;
  box-sizing: border-box;
}

body.dark-mode .nxd-pc-warn {
  background: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.4);
  color: #f3f4f6;
}

.nxd-pc-warn__icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 2px;
  color: #e8a317;
}

body.dark-mode .nxd-pc-warn__icon {
  color: #fbbf24;
}

.nxd-pc-warn__text {
  min-width: 0;
  text-align: left;
}

.nxd-pc-warn strong {
  font-weight: 600;
  color: inherit;
}

/* Full-bleed divider + gray transfer band */
.nxd-pc-del {
  height: 1px;
  background: var(--nxd-item-border, #e4eaf1);
  margin: 14px -28px 0;
}

/* Side-by-side: QR left · payment details right */
.nxd-payment-complete .nxd-pay-ready {
  margin: 0 -28px;
  padding: 14px 28px 6px;
  background: #f9fafc;
}

body.dark-mode .nxd-payment-complete .nxd-pay-ready {
  background: #0c0c0c;
}

.nxd-pay-ready.is-visible {
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 16px 24px;
  align-items: center;
}

.nxd-pc-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  background: transparent;
  text-align: center;
  min-width: 0;
}

.nxd-pc-qr__left {
  display: flex;
  justify-content: center;
}

.nxd-pc-qr__wrap {
  width: 180px;
  height: 180px;
  overflow: hidden;
  border-radius: 6px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.dark-mode .nxd-pc-qr__wrap {
  background: #111;
  border-color: #2a2a2a;
}

.nxd-pc-qr__wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.nxd-pc-qr__right {
  display: block;
  font-size: var(--nxd-fs-sm);
  line-height: 1.45;
  color: #2a5885;
  max-width: 220px;
}

body.dark-mode .nxd-pc-qr__right {
  color: #93c5fd;
}

.nxd-pc-form {
  margin: 0;
  padding: 0;
  background: transparent;
  min-width: 0;
}

.nxd-pc-form__title {
  margin: 0 0 6px;
  font-size: var(--nxd-fs-sm);
  font-weight: 400;
  color: #8ea5c0;
  line-height: 1.4;
}

.nxd-pc-form__input {
  display: flex;
  align-items: stretch;
  border: 1px solid #c2cedc;
  border-radius: 4px;
  min-height: 40px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}

.nxd-pc-form__input:last-child {
  margin-bottom: 0;
}

body.dark-mode .nxd-pc-form__input {
  border-color: #2a2a2a;
  background: #111;
}

.nxd-pc-form__data {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  overflow-x: auto;
  padding: 0 14px;
  font-size: var(--nxd-fs-md);
  font-weight: 400;
  color: var(--nxd-text);
  white-space: nowrap;
  min-width: 0;
  -webkit-overflow-scrolling: touch;
}

.nxd-pc-form__btn {
  appearance: none;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0 16px;
  border: none;
  border-left: 1px solid #c2cedc;
  border-radius: 0;
  background: transparent;
  color: #314e70;
  font-size: var(--nxd-fs-sm);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

body.dark-mode .nxd-pc-form__btn {
  background: transparent;
  border-left-color: #2a2a2a;
  color: #d1d5db;
}

.nxd-pc-form__btn:hover:not(:disabled) {
  background: transparent;
  color: var(--nxd-accent);
}

.nxd-pc-form__btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.nxd-pc-form__btn.is-copied {
  color: var(--nxd-success);
}

.nxd-pc-form__btn svg {
  flex-shrink: 0;
}

.nxd-payment-complete .nxd-loading,
.nxd-payment-complete .nxd-pay-error {
  margin: 12px 0;
}

.nxd-panel {
  display: none;
}

.nxd-panel.is-active {
  display: block;
  animation: nxd-fade-in 0.2s ease;
}

@keyframes nxd-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nxd-panel-stage {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nxd-panel-stage--confirm {
  gap: 20px;
  align-items: stretch;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

.nxd-panel-stage--confirm .nxd-panel-head {
  text-align: center;
}

.nxd-panel-stage--confirm .nxd-panel-head h3 {
  font-size: var(--nxd-fs-lg);
  font-weight: 600;
}

.nxd-panel-stage--confirm .nxd-panel-sub {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.nxd-panel-head {
  margin: 0;
}

.nxd-panel-head h3 {
  margin: 0 0 6px;
  font-size: var(--nxd-fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nxd-text);
  line-height: var(--nxd-lh-md);
}

.nxd-panel-sub {
  margin: 0;
  font-size: var(--nxd-fs-sm);
  font-weight: 400;
  color: var(--nxd-muted);
  line-height: var(--nxd-lh-sm);
  max-width: 40rem;
}

.nxd-panel-stage--amount .nxd-summary-chip {
  margin-bottom: 0;
}

.nxd-amount-card {
  border: 1px solid var(--nxd-border);
  border-radius: 12px;
  background: var(--nxd-page);
  padding: 20px 20px 18px;
}

.nxd-field-amount {
  margin-bottom: 0;
}

.nxd-panel h3 {
  margin: 0 0 4px;
  font-size: var(--nxd-fs-md);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--nxd-text);
  line-height: var(--nxd-lh-md);
}

/* Payment-item style asset cards (matched to deposit method cards) */
.nxd-asset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.nxd-asset-btn {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 112px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  border-radius: 10px;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  position: relative;
  overflow: hidden;
  font: inherit;
  color: var(--nxd-item-text, #314e70);
  box-sizing: border-box;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.nxd-asset-btn::before {
  display: none;
}

.nxd-asset-btn:hover {
  background: var(--nxd-item-hover, #edf2f9);
  border-color: var(--nxd-item-border, #e4eaf1);
}

.nxd-asset-btn.is-selected {
  border-color: var(--nxd-accent);
  background: var(--nxd-item-hover, #edf2f9);
  box-shadow: none;
}

.nxd-asset-btn:focus-visible {
  outline: 2px solid var(--nxd-accent);
  outline-offset: 2px;
}

.nxd-asset-top {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: center;
  height: 80px;
  min-height: 80px;
  padding: 10px 12px;
  box-sizing: border-box;
  background: transparent;
  gap: 10px;
}

.nxd-asset-logo-wrap {
  width: 72px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nxd-asset-logo {
  width: 48px;
  height: 48px;
  max-width: 48px;
  max-height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  flex-shrink: 0;
}

body.dark-mode .nxd-asset-logo {
  background: #111;
}

.nxd-asset-copy {
  min-width: 0;
  padding-right: 4px;
}

.nxd-asset-name {
  font-size: var(--nxd-fs-md);
  font-weight: 500;
  line-height: var(--nxd-lh-md);
  letter-spacing: 0;
  color: var(--nxd-item-text, #314e70);
  word-break: break-word;
}

.nxd-asset-meta {
  margin-top: 0;
  font-size: var(--nxd-fs-sm);
  font-weight: 400;
  color: var(--nxd-item-text, #314e70);
  opacity: 0.72;
  line-height: var(--nxd-lh-sm);
}

.nxd-asset-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 24px;
  min-height: 24px;
  border-top: 1px solid var(--nxd-item-border, #e4eaf1);
  background: transparent;
}

.nxd-asset-btn.is-selected .nxd-asset-foot,
.nxd-asset-btn:hover .nxd-asset-foot {
  background: transparent;
}

.nxd-asset-min,
.nxd-asset-eta {
  display: block;
  height: 24px;
  padding: 0;
  font-size: var(--nxd-fs-xs);
  font-weight: 500;
  line-height: 24px;
  color: var(--nxd-item-text, #314e70);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}

.nxd-asset-min {
  border-right: 1px solid var(--nxd-item-border, #e4eaf1);
}

.nxd-asset-check {
  display: none;
}

.nxd-field {
  margin-bottom: 16px;
}

.nxd-field label {
  display: block;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: var(--nxd-text);
  margin-bottom: 8px;
}

.nxd-amount-wrap {
  position: relative;
}

.nxd-amount-prefix {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--nxd-fs-md);
  font-weight: 500;
  color: var(--nxd-muted);
  pointer-events: none;
}

.nxd-amount-wrap input {
  width: 100%;
  padding: 14px 14px 14px 32px;
  border: 1.5px solid var(--nxd-border);
  border-radius: 10px;
  font-size: var(--nxd-fs-lg);
  font-weight: 500;
  background: var(--nxd-card);
  color: var(--nxd-text);
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
}

.nxd-amount-wrap input:focus {
  outline: none;
  border-color: var(--nxd-accent);
  box-shadow: 0 0 0 3px var(--nxd-accent-soft);
}

.nxd-amount-wrap input.is-invalid {
  border-color: var(--nxd-danger);
}

.nxd-field-hint {
  display: block;
  margin-top: 8px;
  font-size: var(--nxd-fs-sm);
  color: var(--nxd-muted);
  line-height: var(--nxd-lh-sm);
}

.nxd-field-error {
  display: none;
  margin-top: 8px;
  font-size: var(--nxd-fs-sm);
  color: var(--nxd-danger);
  font-weight: 500;
}

.nxd-field-error.is-visible {
  display: block;
}

.nxd-quick-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

/* Step 2 quick offers use the sum-offers grid above */
.nxd-quick-amounts.nxd-sum-offers {
  display: grid;
}

.nxd-quick-amt {
  appearance: none;
  border: 1px solid var(--nxd-border);
  background: transparent;
  color: var(--nxd-text);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.nxd-quick-amt:hover {
  border-color: var(--nxd-accent);
  background: var(--nxd-accent-soft);
  color: var(--nxd-accent);
}

.nxd-summary-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--nxd-page);
  border: 1px solid var(--nxd-border);
  border-radius: 10px;
  margin-bottom: 16px;
}

.nxd-summary-chip img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.nxd-summary-chip strong {
  display: block;
  font-size: var(--nxd-fs-md);
  font-weight: 500;
  color: var(--nxd-text);
}

.nxd-summary-chip span {
  font-size: var(--nxd-fs-sm);
  color: var(--nxd-muted);
}

.nxd-pay-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.nxd-qr-box {
  background: #fff;
  border: 1px solid var(--nxd-border);
  border-radius: 12px;
  padding: 12px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.nxd-qr-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nxd-qr-placeholder,
.nxd-qr-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  color: var(--nxd-muted);
  padding: 12px;
  font-size: var(--nxd-fs-sm);
}

.nxd-qr-error {
  color: var(--nxd-danger);
}

.nxd-qr-placeholder svg,
.nxd-qr-error svg {
  width: 40px;
  height: 40px;
  fill: currentColor;
}

.nxd-pay-details {
  min-width: 0;
}

.nxd-network-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--nxd-fs-xs);
  font-weight: 500;
  color: var(--nxd-accent);
  background: var(--nxd-accent-soft);
  border-radius: 999px;
  padding: 5px 10px;
  margin-bottom: 12px;
}

.nxd-address-label {
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: var(--nxd-muted);
  margin-bottom: 6px;
}

.nxd-address-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.nxd-address-row input {
  flex: 1;
  min-width: 0;
  padding: 12px 12px;
  border: 1.5px solid var(--nxd-border);
  border-radius: 10px;
  font-size: var(--nxd-fs-sm);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  background: var(--nxd-page);
  color: var(--nxd-text);
  box-sizing: border-box;
}

.nxd-copy-btn {
  appearance: none;
  border: none;
  background: var(--nxd-accent);
  color: #fff;
  border-radius: 10px;
  padding: 0 14px;
  font-size: var(--nxd-fs-sm);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: background 0.15s ease;
}

.nxd-copy-btn:hover {
  background: var(--nxd-accent-hover);
}

.nxd-copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.nxd-copy-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nxd-copy-btn.is-copied {
  background: var(--nxd-success);
}

.nxd-warn {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--nxd-warn-bg);
  border: 1px solid var(--nxd-warn-border);
  border-radius: 10px;
}

.nxd-warn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: var(--nxd-warn-text);
  margin-top: 1px;
}

.nxd-warn p {
  margin: 0;
  font-size: var(--nxd-fs-sm);
  line-height: 1.5;
  color: var(--nxd-warn-text);
}

.nxd-warn strong {
  font-weight: 600;
}

.nxd-loading {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 16px;
  color: var(--nxd-muted);
  font-size: var(--nxd-fs-sm);
}

.nxd-loading.is-visible {
  display: flex;
}

.nxd-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--nxd-border);
  border-top-color: var(--nxd-accent);
  border-radius: 50%;
  animation: nxd-spin 0.7s linear infinite;
}

@keyframes nxd-spin {
  to {
    transform: rotate(360deg);
  }
}

.nxd-pay-ready,
.nxd-pay-error {
  display: none;
}

.nxd-pay-error.is-visible {
  display: block;
}

.nxd-pay-error.is-visible {
  text-align: center;
  padding: 28px 16px;
  color: var(--nxd-danger);
}

.nxd-pay-error h4 {
  margin: 10px 0 6px;
  font-size: var(--nxd-fs-md);
  font-weight: 600;
  color: var(--nxd-text);
}

.nxd-pay-error p {
  margin: 0;
  font-size: var(--nxd-fs-sm);
  color: var(--nxd-muted);
}

.nxd-review-grid {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--nxd-card);
}

.nxd-review-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  min-height: 44px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--nxd-item-border, #e4eaf1);
  border-radius: 0;
  box-sizing: border-box;
}

.nxd-review-row:last-child {
  border-bottom: none;
}

.nxd-review-row span {
  flex: 0 0 auto;
  font-size: var(--nxd-fs-sm);
  font-weight: 400;
  color: #8ea5c0;
  line-height: 1.4;
}

.nxd-review-row strong {
  flex: 1 1 auto;
  min-width: 0;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: var(--nxd-text);
  text-align: right;
  word-break: break-word;
  line-height: 1.4;
}

.nxd-panel-stage--confirm .nxd-field--confirm {
  margin-bottom: 0;
}

.nxd-confirm-proof {
  width: 100%;
}

.nxd-upload {
  position: relative;
}

.nxd-upload input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.nxd-upload.has-file input[type="file"] {
  display: none;
}

.nxd-upload.has-file .nxd-upload-zone {
  display: none;
}

.nxd-upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1.5px dashed var(--nxd-item-border, #e4eaf1);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  background: #f9fafc;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
  box-sizing: border-box;
}

body.dark-mode .nxd-upload-zone {
  background: #0c0c0c;
  border-color: #2a2a2a;
}

.nxd-upload.is-dragging .nxd-upload-zone,
.nxd-upload-zone:hover {
  border-color: var(--nxd-accent);
  background: var(--nxd-accent-soft);
}

.nxd-upload-zone svg {
  width: 32px;
  height: 32px;
  fill: var(--nxd-accent);
  margin-bottom: 10px;
}

.nxd-upload-title {
  display: block;
  font-size: var(--nxd-fs-md);
  font-weight: 500;
  color: var(--nxd-text);
  margin-bottom: 4px;
  line-height: 1.4;
}

.nxd-upload-hint {
  display: block;
  font-size: var(--nxd-fs-sm);
  color: #8ea5c0;
  line-height: 1.4;
}

.nxd-upload-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 14px;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  border-radius: 12px;
  background: #f9fafc;
  box-sizing: border-box;
}

.nxd-upload-preview[hidden] {
  display: none !important;
}

body.dark-mode .nxd-upload-preview {
  background: #0c0c0c;
  border-color: #2a2a2a;
}

.nxd-upload-preview__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 160px;
  max-height: 280px;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
}

body.dark-mode .nxd-upload-preview__media {
  background: #111;
  border-color: #2a2a2a;
}

.nxd-upload-preview__img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.nxd-upload-preview__img[hidden],
.nxd-upload-preview__pdf[hidden] {
  display: none !important;
}

.nxd-upload-preview__pdf {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  color: var(--nxd-accent);
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
}

.nxd-upload-preview__meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  text-align: center;
}

.nxd-upload-preview__name {
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: var(--nxd-text);
  word-break: break-word;
  line-height: 1.4;
}

.nxd-upload-preview__size {
  font-size: var(--nxd-fs-xs);
  color: #8ea5c0;
  line-height: 1.4;
}

.nxd-upload-preview__actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.nxd-upload-preview__btn {
  appearance: none;
  margin: 0;
  padding: 8px 14px;
  border: 1px solid var(--nxd-accent);
  border-radius: 8px;
  background: transparent;
  color: var(--nxd-accent);
  font-size: var(--nxd-fs-sm);
  font-weight: 600;
  cursor: pointer;
  line-height: 1.2;
}

.nxd-upload-preview__btn:hover {
  background: var(--nxd-accent-soft);
}

.nxd-upload-preview__btn--muted {
  border-color: var(--nxd-item-border, #e4eaf1);
  color: var(--nxd-item-text, #314e70);
}

body.dark-mode .nxd-upload-preview__btn--muted {
  border-color: #2a2a2a;
  color: #d1d5db;
}

.nxd-panel-stage--confirm .nxd-field-error {
  text-align: center;
}

.nxd-ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--nxd-item-border, #e4eaf1);
  border-radius: 10px;
  background: #f9fafc;
  box-sizing: border-box;
}

body.dark-mode .nxd-ack {
  background: #0c0c0c;
  border-color: #2a2a2a;
}

.nxd-ack input {
  margin-top: 2px;
  accent-color: var(--nxd-accent);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.nxd-ack label {
  font-size: var(--nxd-fs-sm);
  line-height: 1.45;
  color: var(--nxd-item-text, #314e70);
  cursor: pointer;
}

body.dark-mode .nxd-ack label {
  color: var(--nxd-text);
}

.nxd-main-card:has([data-nxd-panel="4"].is-active) .nxd-actions {
  max-width: 520px;
  margin: 16px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--nxd-item-border, #e4eaf1);
  justify-content: center;
}

.nxd-main-card:has([data-nxd-panel="4"].is-active) .nxd-actions .nxd-btn-primary {
  min-width: 200px;
}

.nxd-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.nxd-actions[hidden] {
  display: none !important;
}

.nxd-actions .nxd-btn-primary {
  min-width: 140px;
}

.nxd-btn {
  appearance: none;
  border: none;
  border-radius: 9px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.15s ease,
    opacity 0.15s ease,
    border-color 0.15s ease;
}

.nxd-btn[hidden],
.nxd-loading[hidden],
[data-nxd-summary-asset][hidden] {
  display: none !important;
}

.nxd-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.nxd-btn-ghost {
  background: transparent;
  color: var(--nxd-text);
  border: 1px solid var(--nxd-border);
}

.nxd-btn-ghost:hover:not(:disabled) {
  background: var(--nxd-page);
}

.nxd-btn-primary {
  background: var(--nxd-accent);
  color: #fff;
  margin-left: auto;
}

.nxd-btn-primary:hover:not(:disabled) {
  background: var(--nxd-accent-hover);
}

.nxd-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nxd-pending {
  background: var(--nxd-card);
  border: 1px solid var(--nxd-border);
  border-radius: 14px;
  padding: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.nxd-pending-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--nxd-border);
  min-height: 61px;
  box-sizing: border-box;
}

.nxd-pending-header h3 {
  margin: 0;
  font-size: var(--nxd-fs-md);
  font-weight: 600;
  color: var(--nxd-text);
  line-height: var(--nxd-lh-md);
  letter-spacing: -0.01em;
}

.nxd-pending-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--nxd-muted);
  cursor: pointer;
}

.nxd-pending-refresh:hover {
  background: var(--gray-100, #f1f3f5);
  color: var(--nxd-text);
}

body.dark-mode .nxd-pending-refresh:hover {
  background: #0c0c0c;
  color: var(--nxd-text);
}

.nxd-pending-refresh svg {
  width: 16px;
  height: 16px;
}

.nxd-pending-refresh.is-spinning svg {
  animation: nxd-spin 0.7s linear infinite;
}

.nxd-pending-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nxd-pending-empty {
  text-align: center;
  padding: 32px 20px;
  color: var(--nxd-muted);
  font-size: var(--nxd-fs-sm);
  line-height: 1.45;
}

.nxd-pending-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 20px;
  border: none;
  border-bottom: 1px solid #f3f4f6;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 0.12s ease;
}

.nxd-pending-item:last-child {
  border-bottom: none;
}

.nxd-pending-item:hover,
.nxd-pending-item:focus-visible {
  background: #f9fafb;
  outline: none;
}

body.dark-mode .nxd-pending-item {
  border-bottom-color: #0c0c0c;
}

body.dark-mode .nxd-pending-item:hover,
body.dark-mode .nxd-pending-item:focus-visible {
  background: #111;
}

.nxd-pending-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #d97706;
  overflow: hidden;
}

.nxd-pending-icon img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  background: transparent;
}

.nxd-pending-icon svg {
  width: 20px;
  height: 20px;
}

body.dark-mode .nxd-pending-icon {
  background: transparent;
  color: #fbbf24;
}

.nxd-pending-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nxd-pending-amount {
  font-size: 15px;
  font-weight: 500;
  color: var(--nxd-text);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.nxd-pending-sub {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.nxd-pending-meta,
.nxd-pending-date {
  font-size: var(--nxd-fs-sm);
  color: var(--nxd-muted);
  line-height: 1.35;
}

.nxd-pending-sep {
  color: var(--nxd-muted);
  opacity: 0.55;
  font-size: var(--nxd-fs-sm);
  line-height: 1;
}

.nxd-status {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  padding: 0;
  border-radius: 0;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  background: none;
  color: #d97706;
  white-space: nowrap;
  line-height: 1;
}

body.dark-mode .nxd-status {
  color: #fbbf24;
  background: none;
}

.nxd-pending-chevron {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  align-self: center;
  color: var(--nxd-muted);
  opacity: 0.55;
}

.nxd-pending-chevron svg {
  width: 16px;
  height: 16px;
  display: block;
}

/* Pending deposit confirmation drawer (wallet-style) */
.nxd-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  justify-content: flex-end;
  background: rgba(15, 23, 42, 0.35);
}

.nxd-drawer-overlay[hidden] {
  display: none !important;
}

.nxd-drawer {
  width: min(100vw, 28rem);
  height: 100%;
  background: var(--nxd-card);
  color: var(--nxd-text);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12);
  animation: nxd-drawer-slide-in 0.22s ease;
}

@keyframes nxd-drawer-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.nxd-drawer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  flex-shrink: 0;
  border-bottom: 1px solid var(--nxd-border);
}

.nxd-drawer-head-copy {
  min-width: 0;
}

.nxd-drawer-name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--nxd-accent);
}

body.dark-mode .nxd-drawer-name {
  color: var(--nxd-text);
}

.nxd-drawer-sub {
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--nxd-muted);
}

.nxd-drawer-close {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--nxd-muted);
  cursor: pointer;
  padding: 0;
}

.nxd-drawer-close:hover {
  background: var(--nxd-item-hover);
  color: var(--nxd-text);
}

.nxd-drawer-close svg {
  width: 18px;
  height: 18px;
}

.nxd-drawer-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 24px;
  -webkit-overflow-scrolling: touch;
}

.nxd-drawer-footer {
  padding: 16px 24px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--nxd-border);
  flex-shrink: 0;
}

.nxd-drawer-footer .nxd-btn-primary {
  width: 100%;
  margin-left: 0;
  justify-content: center;
}

.nxd-confirm-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 0 20px;
  text-align: center;
}

.nxd-confirm-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.nxd-confirm-hero__icon svg {
  width: 26px;
  height: 26px;
}

body.dark-mode .nxd-confirm-hero__icon {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
}

.nxd-confirm-hero__crypto {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #d97706;
  font-variant-numeric: tabular-nums;
}

body.dark-mode .nxd-confirm-hero__crypto {
  color: #fbbf24;
}

.nxd-drawer-body .nxd-confirm-details {
  margin: 0;
  padding: 0;
  border: none;
}

.nxd-confirm-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--nxd-item-border, #e4eaf1);
}

.nxd-confirm-row:last-child {
  border-bottom: none;
}

body.dark-mode .nxd-confirm-row {
  border-color: #2a2a2a;
}

.nxd-confirm-row[hidden] {
  display: none !important;
}

.nxd-confirm-row dt {
  margin: 0;
  font-size: var(--nxd-fs-sm);
  font-weight: 450;
  color: var(--nxd-muted);
}

.nxd-confirm-row dd {
  margin: 0;
  font-size: var(--nxd-fs-sm);
  font-weight: 500;
  color: var(--nxd-text);
  text-align: right;
  word-break: break-word;
  font-variant-numeric: tabular-nums;
}

#nxdSuccessAmount,
#nxdSuccessMethod,
#nxdSuccessDate,
#nxdSuccessReference {
  font-weight: 500;
  letter-spacing: normal;
}

.nxd-confirm-status {
  display: inline-flex;
  align-items: center;
  color: #d97706;
  font-weight: 600;
}

body.dark-mode .nxd-confirm-status {
  color: #fbbf24;
}

@media (max-width: 768px) {
  body:has(#section-deposit .nxd-drawer-overlay:not([hidden])) .mobile-bottom-nav {
    visibility: hidden;
    pointer-events: none;
  }

  #section-deposit .nxd-drawer {
    width: 100%;
    max-width: none;
    height: 100%;
    height: 100dvh;
  }

  #section-deposit .nxd-drawer-top,
  #section-deposit .nxd-drawer-body,
  #section-deposit .nxd-drawer-footer {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
  }
}

@media (max-width: 840px) {
  .nxd-main {
    max-width: 100%;
  }

  .nxd-main-card {
    padding: 20px 16px 16px;
  }

  .nxd-hstepper {
    margin-bottom: 20px;
    padding-bottom: 18px;
    justify-content: flex-start;
  }

  .nxd-hstep-label {
    font-size: var(--nxd-fs-sm);
  }

  .nxd-hstep-line {
    margin: 0 8px;
    min-width: 12px;
  }

  .nxd-asset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nxd-pay-layout {
    grid-template-columns: 1fr;
  }

  .nxd-qr-box {
    max-width: 200px;
    margin: 0 auto;
  }

  .nxd-address-row {
    flex-direction: column;
  }

  .nxd-copy-btn {
    height: 42px;
    justify-content: center;
  font-size: var(--nxd-fs-sm);
  font-weight: 600;
  }

  .nxd-actions {
    flex-wrap: wrap;
  }

  .nxd-actions .nxd-btn-primary {
    width: 100%;
  }

  .nxd-amount-card {
    padding: 16px;
  }

  .nxd-step2-cols {
    grid-template-columns: 1fr;
  }

  .nxd-sum-offers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nxd-pinfo {
    grid-template-columns: 100px 1fr;
  }

  .nxd-panel-stage--confirm {
    gap: 16px;
    max-width: 100%;
  }

  .nxd-upload-zone {
    min-height: 150px;
    padding: 22px 16px;
  }

  .nxd-main-card:has([data-nxd-panel="4"].is-active) .nxd-actions {
    max-width: 100%;
  }

  .nxd-pc-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .nxd-pc-header__logo {
    flex: none;
    max-width: none;
    width: auto;
  }

  .nxd-pc-header__logo img {
    max-width: 64px;
    max-height: 64px;
  }

  .nxd-main-card:has([data-nxd-panel="3"].is-active) .nxd-actions {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nxd-pc-del,
  .nxd-payment-complete .nxd-pay-ready {
    margin-left: -16px;
    margin-right: -16px;
  }

  .nxd-payment-complete .nxd-pay-ready {
    padding-left: 16px;
    padding-right: 16px;
  }

  .nxd-pay-ready.is-visible {
    gap: 14px 18px;
    grid-template-columns: minmax(168px, 220px) minmax(0, 1fr);
  }

  .nxd-pc-qr__wrap {
    width: 148px;
    height: 148px;
  }

  .nxd-pc-qr__right {
    max-width: 180px;
  }
}

@media (max-width: 640px) {
  .nxd-pay-ready.is-visible {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nxd-pc-qr {
    flex-direction: row;
    justify-content: flex-start;
    text-align: left;
    gap: 14px;
  }

  .nxd-pc-qr__right {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 520px) {
  .nxd-asset-grid {
    grid-template-columns: 1fr;
  }

  .nxd-hstep-label {
    display: none;
  }

  .nxd-hstep.is-active .nxd-hstep-label {
    display: inline;
  }
}
