:root {
  color-scheme: light;
  --color-primary: #111111;
  --color-primary-gradient: linear-gradient(135deg, #08090b 0%, #242629 52%, #090a0c 100%);
  --color-background: #ffffff;
  --color-background-secondary: #ffffff;
  --color-sage-soft: #eef3ef;
  --color-sage-muted: #52645a;
  --color-text-primary: #101828;
  --color-text-secondary: #667085;
  --color-border: #eaecf0;
  --color-surface-blue: #f3f4f5;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
  --color-navigation-inactive: #858585;
  --color-disabled: #d0d5dd;
  --color-focus-ring: rgb(17 17 17 / 18%);
  --color-shadow: rgb(0 0 0 / 7%);
  --purple: var(--color-primary);
  --ink: var(--color-text-primary);
  --muted: var(--color-text-secondary);
  --line: var(--color-border);
  --green: var(--color-success);
  font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html.site-closed,
html.site-closed body {
  min-height: 100%;
  background: #fff !important;
}

html.site-closed body > * {
  display: none !important;
}

html.site-closed .shell,
html.site-closed .mobile-nav,
html.site-closed #auth-loading,
html.site-closed #modal,
html.site-closed #progress-screen,
html.site-closed #toast {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

html.site-closed body[data-page] .mobile-nav {
  display: none !important;
}

html,
body {
  background: var(--color-background);
  color: var(--color-text-primary);
  font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wallet-held-note {
  display: block;
  margin-top: 5px;
  color: rgb(255 255 255 / 82%);
  font-size: 11px;
}

body,
.shell {
  background: var(--color-background);
  color: var(--color-text-primary);
}

main {
  background: var(--color-background-secondary);
}

h1,
h2,
h3,
h4,
.balance,
.profile-identity h2,
.profile-guest h2 {
  color: var(--color-text-primary);
}

p,
small,
.muted-label,
.date,
.eyebrow,
.service-note,
.admin-intro,
.admin-withdrawal-top small,
.admin-recipient span,
.profile-identity p,
.profile-detail span,
.profile-link small,
.profile-guest > p,
.profile-secure,
footer,
.topup-limit,
.topup-payment small,
.auth-card .auth-heading p,
.auth-card .field-hint,
.auth-main .auth-status,
.auth-bottom {
  color: var(--color-text-secondary);
}

.auth-main .auth-status.auth-status-success {
  color: var(--color-success);
}

header,
.mobile-nav,
.sidebar {
  background: var(--color-background);
  border-color: var(--color-border);
}

.shell {
  box-shadow: none;
}

.page-heading h1 {
  color: var(--color-text-primary);
}

.balance-card,
body[data-page="home"] .balance-card {
  background: var(--color-primary-gradient);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 16px 36px rgb(0 0 0 / 18%);
  color: #ffffff;
}

.balance-card:after {
  display: block;
  border-color: rgb(255 255 255 / 14%);
  box-shadow: 0 0 0 35px rgb(255 255 255 / 5%), 0 0 0 75px rgb(255 255 255 / 4%);
}

.balance-card .card-label,
.balance-card .card-top strong,
.balance-card .wallet-number,
.balance-card .wallet-state,
.balance-card .balance-top,
.balance-card .balance-top button,
.balance-card .balance {
  color: #ffffff;
}

.balance-card .wallet-number {
  letter-spacing: 0;
}

.balance-card .currency-tag,
.balance-card .wallet-chip {
  border-color: rgb(255 255 255 / 28%);
  background: rgb(255 255 255 / 13%);
  color: #ffffff;
}

.balance-card .balance .decimals {
  color: rgb(255 255 255 / 78%);
}

.ds-card,
.overview-card,
.panel,
.profile-hero,
.profile-card,
.profile-guest,
.admin-withdrawal,
.progress-card,
.auth-layout,
.auth-main,
dialog {
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: var(--color-background);
  box-shadow: 0 8px 24px var(--color-shadow);
}

.overview-card,
.panel,
.profile-card,
.admin-panel {
  padding: 24px;
}

.ds-card {
  padding: 24px;
}

.section-top h2,
.profile-card h3,
.profile-identity h2,
.profile-guest h2,
.receipt-body h2,
.topup-title h2 {
  color: var(--color-text-primary);
}

.muted-label {
  border-color: var(--color-border);
  background: var(--color-background-secondary);
}

.quick-card {
  color: var(--color-text-primary);
}

.quick-card strong {
  color: var(--color-text-primary);
}

.quick-icon,
.quick-card:nth-child(2) .quick-icon,
.quick-card:nth-child(3) .quick-icon,
.quick-card:nth-child(4) .quick-icon {
  border-color: var(--color-border);
  box-shadow: 0 10px 24px var(--color-shadow), inset 0 0 0 4px rgb(255 255 255 / 72%);
}

.quick-card:nth-child(1) .quick-icon {
  background: #fff0ed;
  color: #ef4444;
}

.quick-card:nth-child(2) .quick-icon {
  background: #f0f0f0;
  color: var(--color-primary);
}

.quick-card:nth-child(3) .quick-icon {
  background: #e8fbf4;
  color: var(--color-success);
}

.quick-card:nth-child(4) .quick-icon {
  background: #f3edff;
  color: #7c3aed;
}

.quick-card:hover .quick-icon {
  transform: translateY(-2px);
}

.text-btn,
.forgot-link,
.auth-back,
.auth-switch-link,
.auth-main .forgot-link,
.auth-main .auth-switch-link,
.auth-card .forgot-link,
.auth-card .auth-back {
  color: var(--color-primary) !important;
}

.ds-button-primary,
.primary,
.auth-submit,
.topup-submit,
.profile-guest .primary,
.admin-withdrawal .primary,
.mobile-nav .mobile-add,
.balance-actions button:not(.secondary) {
  border: 0 !important;
  border-radius: 14px !important;
  background: var(--color-primary-gradient) !important;
  box-shadow: 0 8px 18px rgb(0 0 0 / 16%) !important;
  color: #ffffff !important;
  transition: filter .18s ease, transform .18s ease, box-shadow .18s ease;
}

.flow-page .primary:not(:disabled),
#modal .primary:not(:disabled),
#modal.topup-modal .topup-submit:not(:disabled) {
  border: 0 !important;
  background: var(--color-primary-gradient) !important;
  background-image: var(--color-primary-gradient) !important;
  box-shadow: 0 8px 18px rgb(0 0 0 / 16%) !important;
  color: #ffffff !important;
}

#modal.topup-modal .presets button.active,
#modal.topup-modal .presets button:hover {
  border-color: var(--color-primary) !important;
  background: var(--color-primary-gradient) !important;
  background-image: var(--color-primary-gradient) !important;
  color: #ffffff !important;
}

.primary:not(:disabled):hover,
.auth-submit:not(:disabled):hover,
.topup-submit:not(:disabled):hover,
.flow-page .primary:not(:disabled):hover,
.topup-modal .topup-submit:not(:disabled):hover,
.profile-guest .primary:not(:disabled):hover,
.admin-withdrawal .primary:not(:disabled):hover,
.mobile-nav .mobile-add:hover {
  filter: brightness(.97);
  box-shadow: 0 10px 22px rgb(0 0 0 / 20%) !important;
}

button:disabled,
.ds-field:disabled,
input:disabled,
textarea:disabled,
select:disabled,
.primary:disabled,
.auth-submit:disabled,
.topup-submit:disabled {
  border-color: var(--color-disabled) !important;
  background: var(--color-disabled) !important;
  box-shadow: none !important;
  color: #667085 !important;
  opacity: 1 !important;
}

.ds-button-secondary,
.balance-actions button.secondary,
.secondary,
.add-account {
  border: 1px solid var(--color-border);
  background: var(--color-surface-blue);
  color: var(--color-primary);
}

.ds-field,
input,
textarea,
select,
.toolbar input,
.toolbar select,
.flow-page input,
.auth-card input,
.auth-input-wrap {
  border-color: var(--color-border) !important;
  border-radius: 12px !important;
  background: var(--color-background) !important;
  color: var(--color-text-primary) !important;
  transition: none !important;
}

input:hover,
textarea:hover,
select:hover,
.auth-input-wrap:hover {
  border-color: var(--color-border) !important;
  background-color: var(--color-background) !important;
  box-shadow: none !important;
  outline: none !important;
  transition: none !important;
  transform: none !important;
}

input:focus,
textarea:focus,
select:focus,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.ds-field:focus,
.ds-field:focus-visible,
.flow-page input:focus,
.flow-page input:focus-visible,
.auth-card input:focus,
.auth-card input:focus-visible,
.auth-input-wrap:focus-within {
  border-color: var(--color-border) !important;
  outline: none !important;
  outline-offset: 0 !important;
  box-shadow: none !important;
  transition: none !important;
  transform: none !important;
}

.auth-input-wrap:hover,
.auth-input-wrap:focus-within {
  background: var(--color-background) !important;
}

.ds-field:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
}

input::placeholder,
textarea::placeholder,
.auth-input-wrap input::placeholder {
  color: var(--color-text-secondary) !important;
  opacity: 1;
}

.ds-field {
  min-height: 48px;
  padding: 12px 14px;
}

.auth-input-wrap input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--color-text-primary) !important;
}

.tabs,
.auth-card .auth-tabs {
  border: 1px solid var(--color-border);
  background: var(--color-background-secondary) !important;
}

.tabs button,
.auth-card .auth-tabs button {
  color: var(--color-text-secondary);
}

.tabs button.active,
.auth-card .auth-tabs button.active {
  border-color: var(--color-primary);
  background: var(--color-surface-blue) !important;
  color: var(--color-primary) !important;
  box-shadow: 0 2px 8px rgb(0 0 0 / 8%) !important;
}

.mobile-nav {
  border-color: var(--color-border);
  background: rgb(255 255 255 / 94%);
  box-shadow: 0 12px 36px rgb(16 24 40 / 13%);
}

.mobile-nav button {
  color: var(--color-navigation-inactive);
}

.mobile-nav button.active,
.mobile-nav button.active svg {
  color: var(--color-sage-muted);
}

.mobile-nav button.active {
  background: var(--color-sage-soft);
}

.mobile-nav .mobile-add {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

.sidebar nav button.active {
  background: var(--color-surface-blue);
  color: var(--color-primary);
}

.table-labels,
.tx,
.ledger-placeholder,
.account-tile,
.profile-detail,
.profile-link,
.receipt-line,
.admin-withdrawal {
  border-color: var(--color-border);
}

.tx {
  color: var(--color-text-primary);
}

.tx-title,
.tx-amount,
.account-tile strong,
.profile-detail strong,
.profile-link strong,
.admin-recipient {
  color: var(--color-text-primary);
}

.tx-info small,
.tx-amount small,
.account-tile small {
  color: var(--color-text-secondary);
}

.tx-icon,
.tx.credit .tx-icon,
.stat-icon,
.bank-logo,
.profile-card-icon,
.profile-link i,
.profile-guest-icon,
.receipt-icon,
.topup-payment-icon,
.topup-payment-check {
  background: var(--color-surface-blue);
  color: var(--color-primary);
}

.payment-methods {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow-y: auto;
  box-sizing: border-box;
  padding: 92px clamp(20px, 6vw, 48px) 32px;
  margin: 0;
  background: #fff;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  padding: 19px 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2efff, #faf9ff);
}

.payment-summary span,
.payment-summary strong {
  display: block;
}

.payment-summary span {
  margin-bottom: 4px;
  color: #5f6b86;
  font-size: 13px;
}

.payment-summary strong {
  color: var(--color-text-primary);
  font-size: 28px;
  letter-spacing: -.8px;
}

.payment-summary button {
  border: 0;
  background: transparent;
  color: #6242d8;
  font-size: 13px;
  font-weight: 700;
}

.payment-fee-disclosure {
  margin: -16px 2px 16px;
  color: var(--color-text-secondary);
  font-size: 12px;
  line-height: 1.5;
}

.payment-fee-breakdown {
  display: grid;
  gap: 9px;
  margin: -12px 2px 24px;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #f7f9f7;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.payment-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.payment-fee-row strong {
  color: var(--color-text-primary);
  font-weight: 650;
  white-space: nowrap;
}

.payment-wallet-credit {
  padding-top: 9px;
  border-top: 1px solid var(--color-border);
}

.payment-wallet-credit strong {
  color: #32765d;
}

.modal-mark.logo {
  overflow: hidden;
  padding: 0;
  background: transparent;
}

.modal-mark.logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.payment-methods > h3 {
  margin: 0 0 14px;
  color: var(--color-text-primary);
  font-size: 20px;
  letter-spacing: -.4px;
}

.topup-page .topup-header {
  z-index: 4;
}

.topup-page #add-form[hidden],
.topup-page .topup-payment[hidden],
.topup-page .payment-methods[hidden] {
  display: none !important;
}

.payment-method-list {
  display: grid;
  gap: 10px;
}

.payment-method-option {
  position: relative;
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  color: var(--color-text-primary);
  text-align: left;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.payment-method-option:hover,
.payment-method-option:focus-visible {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(0 0 0 / 6%);
  transform: translateY(-1px);
}

.payment-method-option.selected {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgb(105 86 232 / 12%), 0 10px 24px rgb(105 86 232 / 12%);
}

.payment-method-option.selected::after {
  border-color: #6640ea;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #6640ea;
}

.payment-method-card.selected {
  border-color: #806df0;
  background: linear-gradient(135deg, #f7f5ff, #fff);
  box-shadow: 0 12px 28px rgb(105 86 232 / 16%);
}

.payment-method-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #6956e8, #a456dc);
  box-shadow: 0 8px 18px rgb(105 86 232 / 24%);
}

.payment-method-icon svg {
  width: 20px;
  height: 20px;
}

.payment-method-option strong,
.payment-method-option small {
  display: block;
}

.payment-method-option strong {
  font-size: 14px;
}

.payment-method-option small {
  margin-top: 3px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.payment-method-arrow {
  color: var(--color-text-secondary);
  font-size: 20px;
}

.payment-method-icon svg {
  color: #fff;
  stroke: currentColor;
}

.payment-method-card {
  min-height: 72px;
  background: #fff;
}

.payment-method-card::after,
.payment-method-upi::after,
.payment-method-bank::after {
  content: "";
  width: 20px;
  height: 20px;
  grid-column: 3;
  grid-row: 1;
  border: 2px solid #a7afbf;
  border-radius: 50%;
}

.payment-method-card .payment-method-arrow,
.payment-method-upi .payment-method-arrow,
.payment-method-bank .payment-method-arrow {
  display: none;
}

.payment-method-card .payment-method-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #5540d4, #9c4cdf);
  box-shadow: 0 10px 22px rgb(85 64 212 / 30%);
}

.payment-method-upi .payment-method-icon {
  background: linear-gradient(135deg, #008b91, #24b68c);
  box-shadow: 0 8px 18px rgb(0 139 145 / 24%);
}

.payment-method-bank .payment-method-icon {
  background: linear-gradient(135deg, #ef7c35, #e94f68);
  box-shadow: 0 8px 18px rgb(239 124 53 / 24%);
}

.payment-method-badge {
  position: absolute;
  top: 7px;
  right: 10px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #e9e4ff;
  color: #5944c5;
  font-size: 9px;
  letter-spacing: .25px;
  text-transform: uppercase;
}

@media (max-width: 420px) {
  .payment-methods {
    padding: calc(76px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-left)) calc(20px + env(safe-area-inset-bottom));
  }

  .payment-summary {
    margin-bottom: 22px;
    padding: 16px;
  }

  .payment-summary strong {
    font-size: 25px;
  }
}

.payment-method-actions {
  position: sticky;
  bottom: 0;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 14px -2px 0;
  padding: 10px 2px 4px;
  background: linear-gradient(#fff0, #fff 16px);
}

.payment-method-continue {
  min-height: 46px;
}

.payment-method-back {
  width: 100%;
  margin-top: 0;
  padding: 10px;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.payment-close-confirm {
  position: fixed;
  z-index: 5;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 23 42 / 48%);
  backdrop-filter: blur(8px);
}

.payment-close-confirm[hidden] {
  display: none;
}

.payment-close-dialog {
  width: min(100%, 340px);
  padding: 24px;
  border: 1px solid rgb(105 86 232 / 12%);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
  text-align: center;
  animation: payment-dialog-in .2s ease-out;
}

.payment-close-dialog::before {
  content: "×";
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f1efff;
  color: #6242d8;
  font-size: 26px;
  font-weight: 500;
}

.payment-close-dialog h3 {
  margin: 0 0 9px;
  color: var(--color-text-primary);
  font-size: 18px;
  letter-spacing: -.2px;
}

.payment-close-dialog p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.5;
}

.payment-close-dialog > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 22px;
}

.payment-close-dialog button {
  min-height: 42px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 650;
}

.payment-close-cancel {
  border: 1px solid #e4e7ec;
  background: #f8f9fb;
  color: var(--color-text-primary);
}

.payment-close-confirm-button {
  border: 1px solid #6242d8;
  background: #6242d8;
  color: #fff;
}

@keyframes payment-dialog-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 640px) {
  .payment-methods {
    padding-right: clamp(32px, 10vw, 120px);
    padding-left: clamp(32px, 10vw, 120px);
  }
}

.payment-methods {
  display: flex;
  flex-direction: column;
  padding-top: calc(82px + env(safe-area-inset-top));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  padding-left: max(20px, env(safe-area-inset-left));
  background: #f8faf8;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.payment-summary {
  flex: 0 0 auto;
  margin-bottom: 28px;
  padding: 19px 20px;
  border: 1px solid #e2eae3;
  background: linear-gradient(135deg, #eef4ef, #f8faf8);
}

.payment-summary span {
  color: #66766b;
  font-size: 12px;
  font-weight: 550;
}

.payment-summary strong {
  font-size: clamp(25px, 7vw, 32px);
  font-weight: 700;
  letter-spacing: -.7px;
  font-variant-numeric: tabular-nums;
}

.payment-summary button {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d8e3da;
  border-radius: 11px;
  background: #fff;
  color: #52645a;
  font-size: 12px;
  font-weight: 650;
}

.payment-methods > h3 {
  flex: 0 0 auto;
  margin-bottom: 7px;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -.35px;
}

.payment-methods > h3::after {
  display: block;
  margin-top: 6px;
  color: var(--color-text-secondary);
  content: "Choose a secure way to add funds to your wallet.";
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.5;
}

.payment-method-list {
  flex: 0 0 auto;
  gap: 11px;
  margin-top: 18px;
}

.payment-method-option {
  min-height: 78px;
  grid-template-columns: 46px minmax(0, 1fr) 20px;
  gap: 13px;
  padding: 13px 15px;
  border-color: #e3e8e3;
  border-radius: 17px;
  box-shadow: 0 2px 8px rgb(24 39 29 / 3%);
}

.payment-method-option:hover,
.payment-method-option:focus-visible {
  border-color: #b6c8b9;
  outline: none;
  box-shadow: 0 0 0 3px rgb(82 100 90 / 10%);
  transform: translateY(-1px);
}

.payment-method-option.selected,
.payment-method-card.selected {
  border-color: #78927e;
  background: #f0f5f0;
  box-shadow: 0 0 0 3px rgb(82 100 90 / 10%);
}

.payment-method-option.selected::after {
  border-color: #718a76;
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px #718a76;
}

.payment-method-icon,
.payment-method-card .payment-method-icon,
.payment-method-upi .payment-method-icon,
.payment-method-bank .payment-method-icon {
  width: 44px;
  height: 44px;
  border: 1px solid #e2e9e3;
  border-radius: 14px;
  background: #edf3ee;
  box-shadow: none;
  color: #526b5a;
}

.payment-method-icon svg {
  color: #526b5a;
  stroke: currentColor;
}

.payment-method-option strong {
  font-size: 14px;
  font-weight: 650;
}

.payment-method-option small {
  color: #707b72;
  font-size: 11px;
  line-height: 1.4;
}

.payment-method-badge {
  top: 8px;
  right: 45px;
  padding: 3px 7px;
  background: #e8f1e9;
  color: #47634e;
  font-size: 8px;
}

.payment-method-actions {
  flex: 0 0 auto;
  gap: 6px;
  margin: auto -4px 0;
  padding: 14px 4px calc(6px + env(safe-area-inset-bottom));
  background: linear-gradient(#f8faf800, #f8faf8 18px);
}

.payment-method-continue {
  min-height: 50px;
  border-radius: 15px !important;
  font-size: 14px;
  font-weight: 650;
}

.payment-method-back {
  min-height: 42px;
  color: #66766b;
}

@media (max-width: 420px) {
  .payment-methods {
    padding-top: calc(72px + env(safe-area-inset-top));
  }

  .payment-summary {
    margin-bottom: 22px;
    padding: 15px 16px;
    border-radius: 16px;
  }

  .payment-method-option {
    min-height: 74px;
    gap: 11px;
    padding: 11px 12px;
  }

  .payment-method-badge {
    right: 40px;
  }
}

.credit .tx-amount,
.success-icon {
  color: var(--color-success);
}

.success h2 {
  color: var(--color-text-primary);
}

.success p,
.profile-secure {
  color: var(--color-text-secondary);
}

.pending-tag,
.tx-amount small.pending {
  border-color: transparent;
  border-radius: 999px;
  background: #fff7e6;
  color: #b54708;
}

.badge,
.profile-badge {
  border-color: #abefc6;
  background: #ecfdf3;
  color: #027a48;
}

.profile-signout strong,
.error,
#error:not(:empty),
.topup-modal #error:not(:empty),
.auth-main #error:not(:empty) {
  color: var(--color-danger) !important;
}

.error:not(:empty),
#error:not(:empty),
.auth-main #error:not(:empty),
.topup-modal #error:not(:empty) {
  border-color: #fecdca !important;
  border-radius: 12px;
  background: #fef3f2 !important;
}

.form-note,
.topup-modal .presets button {
  border-color: var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-blue);
  color: var(--color-text-secondary);
}

.topup-modal .presets button.active,
.topup-modal .presets button:hover {
  border-color: var(--color-primary);
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

.empty {
  color: var(--color-text-secondary);
}

.success-icon {
  background: #ecfdf3;
  color: var(--color-success);
}

.flow-page,
.flow-page.auth-modal,
.flow-page.transaction-modal,
.topup-modal,
.transaction-modal,
.receipt-body {
  background: var(--color-background);
  color: var(--color-text-primary);
}

.flow-page h2,
.flow-page h3,
.flow-page label,
.review-row,
.topup-label,
.topup-title h2,
.topup-amount input {
  color: var(--color-text-primary) !important;
}

.flow-page p,
.topup-title p {
  color: var(--color-text-secondary);
}

.flow-page .modal-head .icon-btn,
.topup-back {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-blue);
  color: var(--color-primary);
}

.flow-page:not(.auth-modal):not(.topup-modal):not(.transaction-modal) .modal-head {
  padding-top: 32px;
  margin-top: 8px;
}

.topup-header {
  top: max(12px, env(safe-area-inset-top));
}

.topup-label {
  box-sizing: border-box;
  height: auto !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  padding: 4px 0;
  line-height: 1.5 !important;
  white-space: normal;
}

.topup-amount {
  overflow: visible;
}

.topup-amount input {
  line-height: 1.15 !important;
  overflow: visible !important;
}

.receipt-hero {
  background: var(--color-primary-gradient);
  color: #ffffff;
}

.receipt-hero h2,
.receipt-hero p {
  color: #ffffff !important;
}

.receipt-avatar {
  border-color: rgb(255 255 255 / 75%);
  background: rgb(255 255 255 / 18%);
  color: #ffffff;
}

.receipt-total > span {
  background: var(--color-success);
}

body.auth-required,
.auth-modal .modal-head,
.auth-modal #modal-content,
.auth-layout,
.auth-card,
.auth-main {
  background: var(--color-background-secondary) !important;
}

.auth-layout {
  background: var(--color-background) !important;
  border-color: var(--color-border) !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 36px var(--color-shadow) !important;
}

.auth-card,
.auth-main {
  border-color: var(--color-border) !important;
  border-radius: 24px !important;
  background: var(--color-background) !important;
  box-shadow: 0 8px 24px var(--color-shadow);
  color: var(--color-text-primary);
}

.auth-aside {
  background: var(--color-surface-blue) !important;
  color: var(--color-text-primary) !important;
}

.auth-aside-mark,
.auth-brand,
.auth-card-mark {
  background: var(--color-primary-gradient) !important;
  color: #ffffff !important;
}

.auth-aside h2,
.auth-card .auth-heading h2,
.auth-main .auth-heading h2 {
  color: var(--color-text-primary) !important;
}

.auth-aside > p,
.auth-aside li,
.auth-kicker,
.auth-card .auth-kicker,
.profile-eyebrow,
.auth-main .field-hint {
  color: var(--color-text-secondary) !important;
}

.auth-aside li svg,
.auth-input-icon,
.auth-password-toggle {
  color: var(--color-primary) !important;
}

.auth-card .auth-tabs button.active {
  border: 1px solid var(--color-border);
}

.auth-submit,
.auth-card .primary {
  background: var(--color-primary-gradient) !important;
}

.auth-bottom {
  border-color: var(--color-border) !important;
}

.progress-spinner {
  stroke: var(--color-primary) !important;
}

.progress-card {
  border-color: var(--color-border);
  border-radius: 24px;
}

#progress-title {
  color: var(--color-text-primary);
}

#progress-detail {
  color: var(--color-text-secondary);
}

#toast {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-surface-blue) !important;
  color: var(--color-text-primary) !important;
  pointer-events: none;
}

.ds-text-primary {
  color: var(--color-text-primary) !important;
}

.ds-text-secondary {
  color: var(--color-text-secondary) !important;
}

.ds-alert-success {
  border-color: #a6f4c5;
  background: #ecfdf3;
  color: #027a48;
}

.ds-alert-warning {
  border-color: #fedf89;
  background: #fffaeb;
  color: #b54708;
}

.ds-alert-error {
  border-color: #fecdca;
  background: #fef3f2;
  color: #b42318;
}

.ds-alert,
.ds-alert-success,
.ds-alert-warning,
.ds-alert-error {
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 12px;
}

dialog::backdrop {
  background: rgb(16 24 40 / 32%);
}

@media (max-width: 650px) {
  main {
    padding-right: 20px;
    padding-left: 20px;
  }

  body[data-page="home"] .shell > main {
    padding-top: 0;
  }

  body[data-page="home"] .balance-card {
    width: calc(100% + 40px);
    min-height: 250px;
    margin: 0 0 0 -20px;
    padding: 24px;
    border-radius: 0;
  }

  .overview-card,
  .panel,
  .profile-card {
    padding: 20px;
    border-radius: 24px;
  }

  .profile-hero {
    padding: 24px;
    border-radius: 24px;
  }

  .flow-page:not(.auth-modal) {
    padding-right: 20px;
    padding-left: 20px;
  }

  .flow-page:not(.auth-modal):not(.topup-modal):not(.transaction-modal) .modal-head {
    padding-top: 32px;
  }
}

#modal.flow-page.transaction-details-modal .modal-head {
  flex-direction: row !important;
  justify-content: flex-start;
}

#modal.flow-page.transaction-details-modal .modal-head::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  content: "Transaction details";
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

#modal.flow-page.transaction-details-modal .modal-head .icon-btn {
  position: relative;
  z-index: 1;
  margin: 0;
}

#modal.flow-page.transaction-details-modal #modal-content {
  display: grid;
  box-sizing: border-box;
  align-content: center;
  justify-items: center;
  padding: clamp(22px, 5vh, 48px) clamp(18px, 4vw, 42px) calc(24px + env(safe-area-inset-bottom));
  background: var(--color-background-secondary);
}

#modal.flow-page.transaction-details-modal .transaction-receipt {
  width: min(100%, 680px);
  max-width: 680px;
  margin: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(16 24 40 / 6%);
}

#modal.flow-page.transaction-details-modal .transaction-receipt-kicker,
#modal.flow-page.transaction-details-modal .transaction-receipt h2,
#modal.flow-page.transaction-details-modal .transaction-receipt-amount,
#modal.flow-page.transaction-details-modal .transaction-receipt-caption {
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-kicker {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 1.1px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt h2 {
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -.5px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-amount {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 650;
  letter-spacing: -.8px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-caption {
  margin-bottom: 26px;
  font-size: 14px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 17px 0;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details span {
  font-size: 13px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details strong {
  font-size: 13px;
  font-weight: 550;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details code {
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-note {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 650px) {
  #modal.flow-page.transaction-details-modal .modal-head {
    flex-direction: row !important;
    padding-right: 16px;
    padding-left: 16px;
  }

  #modal.flow-page.transaction-details-modal .modal-head::after {
    font-size: 15px;
  }

  #modal.flow-page.transaction-details-modal #modal-content {
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt {
    width: 100%;
    padding: 28px 21px;
    border-radius: 24px;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 15px 0;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details span,
  #modal.flow-page.transaction-details-modal .transaction-receipt-details strong {
    line-height: 1.5;
  }
}

/* Compact payment-history rows: category and date stay visually secondary to the amount. */
#tx-list .tx,
.home-transaction-list .tx {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  min-height: 66px;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #eef0f2;
  border-radius: 0;
  background: #fff;
  text-align: left;
}

#tx-list .tx:hover,
.home-transaction-list .tx:hover {
  background: #fff;
}

#tx-list .tx-icon,
.home-transaction-list .tx-icon {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff0ec;
  color: #c96b4b;
}

#tx-list .tx-icon svg,
.home-transaction-list .tx-icon svg {
  width: 20px;
  height: 20px;
}

#tx-list .tx-tone-credit .tx-icon,
.home-transaction-list .tx-tone-credit .tx-icon {
  background: #e7f8e8;
  color: #4e9b59;
}

#tx-list .tx-tone-upi .tx-icon,
.home-transaction-list .tx-tone-upi .tx-icon {
  background: #eee5ff;
  color: #7953b8;
}

#tx-list .tx-tone-bank .tx-icon,
.home-transaction-list .tx-tone-bank .tx-icon {
  background: #e8e0ff;
  color: #7153b4;
}

#tx-list .tx-info,
.home-transaction-list .tx-info {
  display: grid;
  min-width: 0;
  gap: 2px;
}

#tx-list .tx-title,
.home-transaction-list .tx-title {
  overflow: hidden;
  color: #20252b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tx-list .tx-category,
.home-transaction-list .tx-category {
  overflow: hidden;
  color: #9299a1 !important;
  font-size: 11px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tx-list .tx-amount,
.home-transaction-list .tx-amount {
  display: grid;
  justify-items: end;
  gap: 2px;
  color: #c84943;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

#tx-list .tx.credit .tx-amount,
.home-transaction-list .tx.credit .tx-amount {
  color: #31945b;
}

#tx-list .tx-amount .tx-date,
.home-transaction-list .tx-amount .tx-date {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #9299a1 !important;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.25;
}

#tx-list .tx-amount small.pending,
.home-transaction-list .tx-amount small.pending {
  display: none;
}

@media (max-width: 650px) {
  #tx-list .tx,
  .home-transaction-list .tx {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    min-height: 62px;
    gap: 10px;
    padding: 9px 0;
  }

  #tx-list .tx-icon,
  .home-transaction-list .tx-icon {
    width: 36px;
    height: 36px;
  }

  #tx-list .tx-title,
  .home-transaction-list .tx-title {
    font-size: 13px;
  }
}

@media (max-width: 650px) {
  #modal.flow-page.withdrawal-modal #modal-content {
    padding: 18px 20px calc(24px + env(safe-area-inset-bottom)) !important;
    overflow-y: auto;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > #saved-destination-label {
    margin-top: 24px !important;
    margin-bottom: 10px !important;
    font-size: 16px !important;
    font-weight: 500;
  }

  #modal.flow-page.withdrawal-modal .custom-select-trigger {
    min-height: 58px !important;
    padding: 0 16px !important;
    border-width: 1px;
    border-radius: 14px;
    font-size: 16px !important;
    letter-spacing: 0;
  }

  #modal.flow-page.withdrawal-modal .custom-select-trigger svg {
    width: 18px;
    height: 18px;
  }

  #modal.flow-page.withdrawal-modal .saved-destination-summary {
    gap: 5px;
    margin: 16px 0 18px !important;
    padding: 16px 18px !important;
    border-width: 1px;
    border-radius: 15px;
  }

  #modal.flow-page.withdrawal-modal .saved-destination-summary strong {
    font-size: 18px !important;
  }

  #modal.flow-page.withdrawal-modal .saved-destination-summary span,
  #modal.flow-page.withdrawal-modal .saved-destination-summary small {
    font-size: 14px !important;
    line-height: 1.45;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > label[for="amount"] {
    margin: 18px 0 9px !important;
    font-size: 16px !important;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > input#amount {
    min-height: 62px !important;
    padding: 0 16px !important;
    border-width: 1px;
    border-radius: 15px;
    font-size: 22px !important;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > .field-hint {
    margin: 14px 0 0 !important;
    font-size: 14px !important;
    line-height: 1.5;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > label:not([for="amount"]) {
    margin: 14px 0 7px !important;
    font-size: 14px !important;
  }

  #modal.flow-page.withdrawal-modal #destination-fields input {
    min-height: 52px !important;
    padding: 0 14px !important;
    border-radius: 14px;
    font-size: 16px !important;
  }

  #modal.flow-page.withdrawal-modal form .primary {
    min-height: 58px !important;
    margin-top: 28px !important;
    border-radius: 15px !important;
    font-size: 17px !important;
  }

  #modal.flow-page.withdrawal-modal .withdraw-approval {
    margin-top: 28px;
    padding-top: 0 !important;
    font-size: 10px;
  }

  #modal.flow-page.withdrawal-modal .withdraw-approval svg {
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 360px) {
  body[data-page="home"] .balance-card {
    padding-right: 18px;
    padding-left: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

.flow-page.transaction-details-modal {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0;
  padding: 30px 22px;
  background: var(--color-background-secondary);
}

.flow-page.transaction-details-modal .modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  width: min(100%, 720px);
  max-width: 720px;
  margin: 0 auto;
  padding: 0 0 14px;
  background: var(--color-background-secondary);
}

.flow-page.transaction-details-modal .modal-head .icon-btn {
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-primary);
}

.flow-page.transaction-details-modal #modal-content {
  width: min(100%, 720px);
  max-width: 720px;
  margin: 0 auto;
  overflow: visible;
}

.transaction-receipt {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 16px 48px rgb(16 24 40 / 8%);
}

.transaction-receipt-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.transaction-receipt-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 18px;
  background: #fff3e0;
  color: #b45309;
  font-size: 26px;
  font-weight: 700;
}

.transaction-receipt-icon.credit {
  background: #e8fbf4;
  color: var(--color-success);
}

.transaction-status {
  padding: 7px 12px;
  border-radius: 20px;
  background: #e8fbf4;
  color: #047857;
  font-size: 11px;
  font-weight: 750;
}

.transaction-status.pending {
  background: #fff3e0;
  color: #b45309;
}

.transaction-receipt-kicker {
  margin: 27px 0 6px;
  color: var(--color-text-secondary);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.2px;
}

.transaction-receipt h2 {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(24px, 5vw, 32px);
  letter-spacing: -.8px;
}

.transaction-receipt-amount {
  margin: 23px 0 0;
  color: var(--color-text-primary);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 760;
  letter-spacing: -1.5px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.transaction-receipt-amount.credit {
  color: var(--color-success);
}

.transaction-receipt-caption {
  margin: 5px 0 26px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

.transaction-receipt-details {
  border-top: 1px solid var(--color-border);
}

.transaction-receipt-details > div {
  display: grid;
  grid-template-columns: minmax(105px, .7fr) minmax(0, 1.3fr);
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--color-border);
}

.transaction-receipt-details span {
  color: var(--color-text-secondary);
  font-size: 12px;
}

.transaction-receipt-details strong,
.transaction-receipt-details code {
  min-width: 0;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 650;
  overflow-wrap: anywhere;
  text-align: right;
}

.transaction-receipt-details code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
}

.transaction-receipt-note {
  margin: 18px 0 0;
  color: var(--color-text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

.flow-page.withdrawal-modal {
  background: var(--color-background-secondary);
}

.flow-page.withdrawal-modal .modal-head .icon-btn {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
  color: var(--color-primary);
}

.flow-page.withdrawal-modal #modal-content {
  border-color: var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(16 24 40 / 8%);
}

.flow-page.withdrawal-modal .tabs button {
  min-height: 46px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-secondary);
}

.flow-page.withdrawal-modal .tabs button.active {
  border-color: #c8c8c8;
  background: var(--color-surface-blue);
  color: var(--color-primary);
}

.flow-page.withdrawal-modal form label {
  color: var(--color-text-primary);
  font-weight: 650;
}

.flow-page.withdrawal-modal form input,
.flow-page.withdrawal-modal form select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-primary);
}

.flow-page.withdrawal-modal form input:focus,
.flow-page.withdrawal-modal form select:focus {
  border-color: var(--color-border);
  outline: 0;
  box-shadow: none;
}

.flow-page.withdrawal-modal form .primary {
  width: 100%;
  min-height: 50px;
}

@media (max-width: 650px) {
  .flow-page.transaction-details-modal {
    display: block;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--color-background-secondary);
  }

  .flow-page.transaction-details-modal .modal-head {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
    background: var(--color-background-secondary);
  }

  .flow-page.transaction-details-modal .modal-head .icon-btn {
    width: 44px;
    height: 44px;
  }

  .flow-page.transaction-details-modal #modal-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
  }

  .transaction-receipt {
    padding: 22px 19px;
    border-radius: 22px;
    box-shadow: 0 8px 24px rgb(16 24 40 / 6%);
  }

  .transaction-receipt-kicker {
    margin-top: 22px;
  }

  .transaction-receipt-caption {
    margin-bottom: 21px;
  }

  .transaction-receipt-details > div {
    grid-template-columns: minmax(92px, .75fr) minmax(0, 1.25fr);
    gap: 10px;
    padding: 14px 0;
  }

  .transaction-receipt-details span,
  .transaction-receipt-details strong {
    font-size: 11px;
  }

  .transaction-receipt-details code {
    font-size: 9px;
  }

  .flow-page.withdrawal-modal {
    padding: 0 14px calc(22px + env(safe-area-inset-bottom));
    background: var(--color-background-secondary);
  }

  .flow-page.withdrawal-modal .modal-head {
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
  }

  .flow-page.withdrawal-modal #modal-content {
    max-width: 520px;
    margin: 6px auto 0;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(16 24 40 / 7%);
  }

  .flow-page.withdrawal-modal #modal-content h2 {
    font-size: 25px;
    letter-spacing: -.7px;
  }

  .flow-page.withdrawal-modal #modal-content > p {
    font-size: 13px;
    line-height: 1.5;
  }

  .flow-page.withdrawal-modal .tabs {
    gap: 8px;
    margin: 18px 0 15px;
  }

  .flow-page.withdrawal-modal .tabs button {
    min-width: 0;
    padding: 10px 8px;
    font-size: 12px;
  }

  .flow-page.withdrawal-modal form label {
    margin: 15px 0 7px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .flow-page.withdrawal-modal form input,
  .flow-page.withdrawal-modal form select {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 15px;
  }

  .flow-page.withdrawal-modal form .field-hint {
    margin: 10px 0;
    font-size: 11px;
    line-height: 1.5;
  }

  .flow-page.withdrawal-modal form .primary {
    margin-top: 8px;
  }
}

body[data-page="transactions"] #page {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* Flat, compact withdrawal surface. */
.flow-page.withdrawal-modal {
  inset: 0;
  padding: 0 20px calc(24px + env(safe-area-inset-bottom));
  background: var(--color-background) !important;
}

.flow-page.withdrawal-modal .modal-head {
  width: min(100%, 560px);
  margin: 0 auto;
  padding: max(16px, env(safe-area-inset-top)) 0 12px;
  background: var(--color-background);
}

.flow-page.withdrawal-modal #modal-content {
  width: min(100%, 560px);
  max-width: none;
  margin: 0 auto;
  padding: 4px 0 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.flow-page.withdrawal-modal #modal-content h2 {
  margin: 4px 0 18px;
  font-size: 22px;
  font-weight: 650;
}

.flow-page.withdrawal-modal #withdraw-form > #saved-destination-label {
  margin: 12px 0 6px;
  font-size: 13px;
  font-weight: 550;
}

.flow-page.withdrawal-modal .custom-select-trigger {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
}

.flow-page.withdrawal-modal .saved-destination-summary {
  gap: 3px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
}

.flow-page.withdrawal-modal .saved-destination-summary strong {
  font-size: 14px;
}

.flow-page.withdrawal-modal .saved-destination-summary span,
.flow-page.withdrawal-modal .saved-destination-summary small {
  font-size: 11px;
  line-height: 1.35;
}

.flow-page.withdrawal-modal #withdraw-form > label[for="amount"] {
  margin: 14px 0 6px;
  font-size: 13px;
}

.flow-page.withdrawal-modal #withdraw-form > input#amount {
  min-height: 48px;
  padding: 0 12px;
  border-radius: 10px;
  font-size: 18px;
}

.flow-page.withdrawal-modal #withdraw-form > .field-hint {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.4;
}

.flow-page.withdrawal-modal form .primary {
  min-height: 48px;
  margin-top: 16px;
  border-radius: 10px;
  font-size: 15px;
}

.flow-page.withdrawal-modal .withdraw-approval {
  margin-top: 16px;
  padding-top: 0;
  font-size: 9px;
}

.flow-page.withdrawal-modal #withdraw-form {
  display: flex;
  flex-direction: column;
}

.flow-page.withdrawal-modal #withdraw-form > label[for="amount"] {
  order: 1;
}

.flow-page.withdrawal-modal #withdraw-form > input#amount {
  order: 2;
}

.flow-page.withdrawal-modal #withdraw-form > .field-hint {
  order: 3;
  font-size: 10px !important;
}

.flow-page.withdrawal-modal #withdraw-form > #saved-destination-label {
  order: 4;
}

.flow-page.withdrawal-modal #withdraw-form > #saved-destination {
  order: 5;
}

.flow-page.withdrawal-modal #withdraw-form > #destination-fields {
  order: 6;
}

.flow-page.withdrawal-modal #withdraw-form > .error,
.flow-page.withdrawal-modal #withdraw-form > .primary,
.flow-page.withdrawal-modal #withdraw-form > .withdraw-approval {
  order: 7;
}

.flow-page.withdrawal-modal .custom-select-trigger {
  border-color: transparent;
  background: transparent;
  padding: 0 2px;
  min-height: 30px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.flow-page.withdrawal-modal .custom-select-trigger svg {
  width: 15px;
  height: 15px;
}

.flow-page.withdrawal-modal .saved-destination-summary {
  margin-top: 6px;
}

body[data-page="transactions"] #page > .panel {
  padding: clamp(20px, 3vw, 32px);
}

body[data-page="transactions"] .toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 220px);
  gap: 12px;
  margin: 22px 0 12px;
}

body[data-page="transactions"] .toolbar input,
body[data-page="transactions"] .toolbar select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
}

.tx {
  min-width: 0;
}

.tx-info {
  min-width: 0;
}

.tx-title {
  overflow-wrap: anywhere;
}

.tx-amount {
  flex: 0 0 auto;
  white-space: nowrap;
}

.tx-pagination {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
  color: var(--color-text-secondary);
  font-size: 12px;
}

.tx-pagination .text-btn {
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: var(--color-surface-blue);
}

.flow-page.transaction-modal {
  display: block;
  padding: 24px;
  overflow-y: auto;
  background: rgb(16 24 40 / 48%);
}

.flow-page.transaction-modal .modal-head {
  position: absolute;
  z-index: 2;
  top: 42px;
  right: 0;
  left: 0;
  width: min(100% - 40px, 420px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.flow-page.transaction-modal .modal-head .icon-btn {
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 35%);
  border-radius: 14px;
  background: rgb(16 24 40 / 18%);
  color: #ffffff;
  backdrop-filter: blur(10px);
}

.flow-page.transaction-modal #modal-content {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--color-background);
  box-shadow: 0 24px 80px rgb(16 24 40 / 24%);
}

.flow-page.transaction-modal .receipt-hero {
  padding: 82px 28px 42px;
}

.flow-page.transaction-modal .receipt-avatar {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
  border: 0;
  box-shadow: 0 0 0 8px rgb(255 255 255 / 13%);
}

.flow-page.transaction-modal .receipt-body {
  margin-top: 0;
  padding: 26px 28px 28px;
  border-radius: 0;
}

.flow-page.transaction-modal .receipt-body .section-top {
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
}

.flow-page.transaction-modal .receipt-date {
  flex: 0 0 auto;
  text-align: right;
}

.flow-page.transaction-modal .receipt-line {
  gap: 14px;
  padding: 18px 0;
}

.flow-page.transaction-modal .receipt-line > div {
  min-width: 0;
}

.flow-page.transaction-modal .receipt-line strong,
.flow-page.transaction-modal .receipt-line p {
  overflow-wrap: anywhere;
}

.flow-page.transaction-modal .receipt-total {
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.flow-page.transaction-modal .receipt-total strong {
  color: var(--color-text-primary);
}

.flow-page.withdrawal-modal {
  display: block;
  padding: 24px;
  overflow-y: auto;
  background: rgb(16 24 40 / 48%);
}

.flow-page.withdrawal-modal .modal-head {
  position: absolute;
  z-index: 2;
  top: 24px;
  right: 0;
  left: 0;
  width: min(100% - 48px, 480px);
  max-width: none;
  margin: 0 auto;
  padding: 0;
}

.flow-page.withdrawal-modal .modal-head .modal-mark {
  visibility: hidden;
}

.flow-page.withdrawal-modal .modal-head .icon-btn {
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-background);
}

.flow-page.withdrawal-modal #modal-content {
  width: 100%;
  max-width: 520px;
  box-sizing: border-box;
  margin: 48px auto 0;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: var(--color-background);
  box-shadow: 0 24px 80px rgb(16 24 40 / 18%);
}

.flow-page.withdrawal-modal #modal-content h2 {
  margin-bottom: 8px;
}

.flow-page.withdrawal-modal #modal-content > p {
  margin-top: 0;
}

.flow-page.withdrawal-modal .tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 24px 0 20px;
}

.flow-page.withdrawal-modal .tabs button {
  min-width: 0;
}

.flow-page.withdrawal-modal form label {
  display: block;
  margin: 18px 0 8px;
}

.flow-page.withdrawal-modal form input,
.flow-page.withdrawal-modal form select {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
}

.flow-page.withdrawal-modal form .field-hint {
  margin: 12px 0;
}

.flow-page.withdrawal-modal form .primary {
  margin-top: 8px;
}

@media (max-width: 650px) {
  body[data-page="transactions"] #page > .panel {
    padding: 18px 16px;
  }

  body[data-page="transactions"] .toolbar {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin: 18px 0 10px;
  }

  .flow-page.transaction-modal {
    padding: 0 0 env(safe-area-inset-bottom);
    background: var(--color-background);
  }

  .flow-page.transaction-modal .modal-head {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    width: auto;
    margin: 0 18px;
  }

  .flow-page.transaction-modal .modal-head .icon-btn {
    width: 46px;
    height: 46px;
    background: rgb(16 24 40 / 22%);
  }

  .flow-page.transaction-modal #modal-content {
    max-width: none;
    min-height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .flow-page.transaction-modal .receipt-hero {
    padding: calc(84px + env(safe-area-inset-top)) 24px 38px;
  }

  .flow-page.transaction-modal .receipt-body {
    padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
  }

  .flow-page.transaction-modal .receipt-line {
    padding: 16px 0;
  }

  .flow-page.transaction-modal .receipt-total {
    padding-top: 20px;
  }

  .flow-page.withdrawal-modal {
    padding: 0 20px calc(24px + env(safe-area-inset-bottom));
    background: var(--color-background);
  }

  .flow-page.withdrawal-modal .modal-head {
    position: sticky;
    top: env(safe-area-inset-top);
    width: 100%;
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top)) 0 12px;
    background: var(--color-background);
  }

  .flow-page.withdrawal-modal #modal-content {
    max-width: 480px;
    margin: 8px auto 0;
    padding: 12px 0 24px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .flow-page.withdrawal-modal #modal-content h2 {
    font-size: 28px;
  }

  .flow-page.withdrawal-modal .tabs {
    margin: 22px 0 16px;
  }

  .flow-page.withdrawal-modal form label {
    margin-top: 16px;
  }
}

#modal.flow-page.transaction-details-modal {
  display: grid;
  align-content: start;
  justify-items: center;
  padding: 30px 22px;
  background: var(--color-background-secondary);
}

#modal.flow-page.transaction-details-modal .modal-head {
  position: sticky;
  top: 0;
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 0 0 14px;
  background: var(--color-background-secondary);
}

#modal.flow-page.transaction-details-modal #modal-content {
  width: min(100%, 720px);
  max-width: 720px;
  min-height: 0;
  margin: 0 auto;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#modal.flow-page.withdrawal-modal {
  background: var(--color-background-secondary);
}

#modal.flow-page.withdrawal-modal #modal-content {
  border-color: var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 42px rgb(16 24 40 / 8%);
}

@media (max-width: 650px) {
  #modal.flow-page.transaction-details-modal {
    display: block;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom));
    background: var(--color-background-secondary);
  }

  #modal.flow-page.transaction-details-modal .modal-head {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
    background: var(--color-background-secondary);
  }

  #modal.flow-page.transaction-details-modal #modal-content {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  #modal.flow-page.withdrawal-modal {
    padding: 0 14px calc(22px + env(safe-area-inset-bottom));
    background: var(--color-background-secondary);
  }

  #modal.flow-page.withdrawal-modal .modal-head {
    position: sticky;
    top: 0;
    width: 100%;
    margin: 0 auto;
    padding: calc(10px + env(safe-area-inset-top)) 0 10px;
    background: var(--color-background-secondary);
  }

  #modal.flow-page.withdrawal-modal #modal-content {
    width: 100%;
    max-width: 520px;
    margin: 6px auto 0;
    padding: 22px 18px calc(24px + env(safe-area-inset-bottom));
    border: 1px solid var(--color-border);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 30px rgb(16 24 40 / 7%);
  }

  #modal.flow-page.withdrawal-modal #modal-content h2 {
    font-size: 25px;
    letter-spacing: -.7px;
  }

  #modal.flow-page.withdrawal-modal #modal-content > p {
    font-size: 13px;
    line-height: 1.5;
  }

  #modal.flow-page.withdrawal-modal .tabs {
    gap: 8px;
    margin: 18px 0 15px;
  }

  #modal.flow-page.withdrawal-modal .tabs button {
    min-width: 0;
    min-height: 46px;
    padding: 10px 8px;
    font-size: 12px;
  }

  #modal.flow-page.withdrawal-modal form label {
    margin: 15px 0 7px;
    font-size: 12px;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  #modal.flow-page.withdrawal-modal form input,
  #modal.flow-page.withdrawal-modal form select {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    padding: 11px 12px;
    font-size: 15px;
  }

  #modal.flow-page.withdrawal-modal form .field-hint {
    margin: 10px 0;
    font-size: 11px;
    line-height: 1.5;
  }

  #modal.flow-page.withdrawal-modal form .primary {
    width: 100%;
    min-height: 50px;
    margin-top: 8px;
  }
}

#modal.flow-page.withdrawal-modal {
  background: #fff;
}

#modal.flow-page.withdrawal-modal .modal-head {
  min-height: calc(62px + env(safe-area-inset-top));
  padding-right: max(20px, calc((100vw - 600px) / 2));
  padding-left: max(20px, calc((100vw - 600px) / 2));
}

#modal.flow-page.withdrawal-modal #modal-content {
  padding: 26px 20px calc(30px + env(safe-area-inset-bottom));
  background: #fff;
}

#modal.flow-page.withdrawal-modal #modal-content > p {
  max-width: 560px;
  margin: 4px auto 20px;
  font-size: 13px;
  line-height: 1.5;
}

#modal.flow-page.withdrawal-modal .withdraw-balance-strip {
  display: flex;
  max-width: 560px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 20px;
  padding: 14px 16px;
  border: 1px solid #eef0f2;
  border-radius: 14px;
  background: #fafbfc;
}

#modal.flow-page.withdrawal-modal .withdraw-balance-strip span:first-child {
  display: grid;
  gap: 4px;
}

#modal.flow-page.withdrawal-modal .withdraw-balance-strip small {
  color: #98a2b3;
  font-size: 11px;
}

#modal.flow-page.withdrawal-modal .withdraw-balance-strip strong {
  color: #344054;
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -.3px;
}

#modal.flow-page.withdrawal-modal .withdraw-balance-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #f0f2f5;
  color: #667085;
}

#modal.flow-page.withdrawal-modal .withdraw-balance-icon svg {
  width: 18px;
  height: 18px;
}

#modal.flow-page.withdrawal-modal .tabs {
  max-width: 560px;
  margin-bottom: 20px;
  padding: 3px;
  border-radius: 12px;
  background: var(--color-background-secondary);
}

#modal.flow-page.withdrawal-modal .tabs button {
  min-height: 42px;
}

#modal.flow-page.withdrawal-modal form {
  max-width: 560px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#modal.flow-page.withdrawal-modal form label {
  margin: 16px 0 7px;
  font-size: 12px;
}

#modal.flow-page.withdrawal-modal form input,
#modal.flow-page.withdrawal-modal form select,
#modal.flow-page.withdrawal-modal .custom-select-trigger {
  min-height: 48px;
  padding: 11px 13px;
  border-radius: 11px;
  font-size: 14px;
}

#modal.flow-page.withdrawal-modal .custom-select {
  position: relative;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #d9dee8;
  background: #fff;
  color: #344054;
  text-align: left;
  cursor: pointer;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger:hover,
#modal.flow-page.withdrawal-modal .custom-select-trigger[aria-expanded="true"] {
  border-color: #98a2b3;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger:focus-visible,
#modal.flow-page.withdrawal-modal .custom-select-menu button:focus-visible {
  outline: 2px solid rgba(86, 87, 84, .25);
  outline-offset: 2px;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  transition: transform .18s ease;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

#modal.flow-page.withdrawal-modal .custom-select-menu {
  position: absolute;
  z-index: 5;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  display: grid;
  gap: 3px;
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #e4e7ec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 40, .12);
}

#modal.flow-page.withdrawal-modal .custom-select-menu[hidden] {
  display: none;
}

#modal.flow-page.withdrawal-modal .custom-select-menu button {
  min-height: 42px;
  padding: 10px 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #475467;
  font: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

#modal.flow-page.withdrawal-modal .custom-select-menu button:hover,
#modal.flow-page.withdrawal-modal .custom-select-menu button[aria-selected="true"] {
  background: #f2f4f7;
  color: #344054;
}

#modal.flow-page.withdrawal-modal form input[readonly] {
  border-color: #f0f1f3;
  background: #fafbfc;
  color: #667085;
}

#modal.flow-page.withdrawal-modal .saved-destination-summary {
  display: grid;
  gap: 5px;
  margin: 16px 0 4px;
  padding: 14px 15px;
  border: 1px solid #e7eaf0;
  border-radius: 12px;
  background: #fafbfc;
}

#modal.flow-page.withdrawal-modal .saved-destination-summary strong {
  color: #344054;
  font-size: 14px;
  font-weight: 550;
}

#modal.flow-page.withdrawal-modal .saved-destination-summary span,
#modal.flow-page.withdrawal-modal .saved-destination-summary small {
  color: #667085;
  font-size: 12px;
  line-height: 1.45;
}

#modal.flow-page.withdrawal-modal form .field-hint {
  margin: 14px 0 0;
}

#modal.flow-page.withdrawal-modal form .primary {
  min-height: 50px;
  margin-top: 20px;
  border-radius: 12px;
  font-weight: 550;
}

@media (max-width: 650px) {
  #modal.flow-page.withdrawal-modal .modal-head {
    min-height: calc(58px + env(safe-area-inset-top));
    padding-right: 16px;
    padding-left: 16px;
  }

  #modal.flow-page.withdrawal-modal #modal-content {
    padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    background: #fff;
  }

  #modal.flow-page.withdrawal-modal #modal-content > p {
    margin: 0 auto 16px;
    font-size: 12px;
  }

  #modal.flow-page.withdrawal-modal .withdraw-balance-strip {
    margin-bottom: 16px;
    padding: 12px 14px;
  }

  #modal.flow-page.withdrawal-modal .withdraw-balance-strip strong {
    font-size: 18px;
  }

  #modal.flow-page.withdrawal-modal .tabs {
    margin-bottom: 18px;
  }

  #modal.flow-page.withdrawal-modal .tabs button {
    min-height: 40px;
  }

  #modal.flow-page.withdrawal-modal form {
    padding: 0;
  }

  #modal.flow-page.withdrawal-modal form label {
    margin-top: 14px;
    font-size: 11px;
  }

  #modal.flow-page.withdrawal-modal form input,
  #modal.flow-page.withdrawal-modal form select {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
  }

  #modal.flow-page.withdrawal-modal form .primary {
    position: sticky;
    bottom: 0;
    margin: 20px -18px calc(-18px - env(safe-area-inset-bottom));
    width: calc(100% + 36px);
    min-height: calc(58px + env(safe-area-inset-bottom));
    padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
    border-radius: 0;
    background: var(--color-primary-gradient) !important;
    box-shadow: 0 -6px 18px rgb(16 24 40 / 7%) !important;
  }
}

#modal.flow-page.withdrawal-modal,
#modal.flow-page.transaction-details-modal {
  display: flex;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: var(--color-background-secondary);
  box-shadow: none;
}

#modal.flow-page.withdrawal-modal .modal-head,
#modal.flow-page.transaction-details-modal .modal-head {
  position: relative;
  z-index: 2;
  top: auto;
  right: auto;
  left: auto;
  display: flex;
  width: 100%;
  max-width: none;
  min-height: calc(64px + env(safe-area-inset-top));
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 15px;
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top)) clamp(18px, 4vw, 42px) 8px;
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

#modal.flow-page.withdrawal-modal .modal-head .modal-mark,
#modal.flow-page.transaction-details-modal .modal-head .modal-mark {
  display: none;
}

#modal.flow-page.withdrawal-modal .modal-head::after,
#modal.flow-page.transaction-details-modal .modal-head::after {
  color: var(--color-text-primary);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
}

#modal.flow-page.withdrawal-modal .modal-head::after {
  content: none;
}

#modal.flow-page.transaction-details-modal .modal-head::after {
  content: "Transaction details";
}

#modal.flow-page.withdrawal-modal .modal-head .icon-btn,
#modal.flow-page.transaction-details-modal .modal-head .icon-btn {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--color-surface-blue);
  color: var(--color-primary);
}

#modal.flow-page.withdrawal-modal #modal-content,
#modal.flow-page.transaction-details-modal #modal-content {
  width: 100%;
  max-width: none;
  min-height: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 24px clamp(18px, 4vw, 42px) calc(30px + env(safe-area-inset-bottom));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: var(--color-background-secondary);
  box-shadow: none;
  scrollbar-gutter: stable;
}

#modal.flow-page.withdrawal-modal #modal-content > *,
#modal.flow-page.transaction-details-modal #modal-content > * {
  width: 100%;
  max-width: 680px;
  margin-right: auto;
  margin-left: auto;
}

#modal.flow-page.withdrawal-modal #modal-content > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#modal.flow-page.withdrawal-modal #modal-content > h2 + p {
  max-width: 680px;
  margin: 10px auto 20px;
}

#modal.flow-page.withdrawal-modal #modal-content > p {
  max-width: 680px;
  margin-bottom: 18px;
  color: var(--color-text-secondary);
  font-size: 13px;
}

#modal.flow-page.withdrawal-modal .tabs {
  max-width: 680px;
  gap: 10px;
  margin: 0 auto 22px;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: #fff;
}

#modal.flow-page.withdrawal-modal .tabs button {
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 650;
}

#modal.flow-page.withdrawal-modal .tabs button.active {
  background: var(--color-surface-blue);
  box-shadow: inset 0 0 0 1px #d4d4d4;
  color: var(--color-primary);
}

#modal.flow-page.withdrawal-modal form {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 8px 26px rgb(16 24 40 / 4%);
}

#modal.flow-page.withdrawal-modal form label {
  margin: 18px 0 8px;
  color: var(--color-text-primary);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
}

#modal.flow-page.withdrawal-modal form input,
#modal.flow-page.withdrawal-modal form select {
  width: 100%;
  min-width: 0;
  min-height: 50px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: #fff;
  color: var(--color-text-primary);
  font-size: 15px;
}

#modal.flow-page.withdrawal-modal form .field-hint {
  margin: 15px 0 7px;
  color: var(--color-text-secondary);
  font-size: 11px;
  line-height: 1.55;
}

#modal.flow-page.withdrawal-modal form .primary {
  position: sticky;
  bottom: env(safe-area-inset-bottom);
  z-index: 1;
  width: 100%;
  min-height: 52px;
  margin-top: 13px;
  border-radius: 14px;
}

#modal.flow-page.transaction-details-modal #modal-content {
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: clamp(28px, 7vh, 72px);
}

#modal.flow-page.transaction-details-modal .transaction-receipt {
  width: min(100%, 620px);
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 34px rgb(16 24 40 / 6%);
}

@media (max-width: 650px) {
  #modal.flow-page.withdrawal-modal .modal-head,
  #modal.flow-page.transaction-details-modal .modal-head {
    min-height: calc(58px + env(safe-area-inset-top));
    gap: 12px;
    padding-right: 16px;
    padding-left: 16px;
  }

  #modal.flow-page.withdrawal-modal .modal-head::after,
  #modal.flow-page.transaction-details-modal .modal-head::after {
    font-size: 16px;
  }

  #modal.flow-page.withdrawal-modal .modal-head .icon-btn,
  #modal.flow-page.transaction-details-modal .modal-head .icon-btn {
    width: 40px;
    height: 40px;
  }

  #modal.flow-page.withdrawal-modal #modal-content,
  #modal.flow-page.transaction-details-modal #modal-content {
    padding: 20px 15px calc(24px + env(safe-area-inset-bottom));
  }

  #modal.flow-page.withdrawal-modal #modal-content > h2 {
    margin-top: 4px;
    font-size: 24px;
  }

  #modal.flow-page.withdrawal-modal #modal-content > p {
    margin-bottom: 16px;
    font-size: 12px;
  }

  #modal.flow-page.withdrawal-modal .tabs {
    gap: 5px;
    margin-bottom: 16px;
    padding: 4px;
  }

  #modal.flow-page.withdrawal-modal .tabs button {
    min-height: 43px;
    padding: 8px 5px;
    font-size: 12px;
  }

  #modal.flow-page.withdrawal-modal form {
    padding: 17px 15px calc(18px + env(safe-area-inset-bottom));
    border-radius: 18px;
  }

  #modal.flow-page.withdrawal-modal form label {
    margin-top: 15px;
    font-size: 11px;
  }

  #modal.flow-page.withdrawal-modal form input,
  #modal.flow-page.withdrawal-modal form select {
    min-height: 48px;
    padding: 11px 12px;
    font-size: 14px;
  }

  #modal.flow-page.withdrawal-modal form .primary {
    bottom: calc(env(safe-area-inset-bottom) + 6px);
    min-height: 50px;
  }

  #modal.flow-page.transaction-details-modal #modal-content {
    display: grid;
    align-content: start;
    justify-items: center;
    padding-top: 20px;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt {
    width: 100%;
    max-width: none;
    padding: 22px 18px;
    border-radius: 20px;
  }
}

#modal.flow-page.withdrawal-modal #modal-content {
  display: flex;
  flex-direction: column;
}

#modal.flow-page.withdrawal-modal form {
  display: flex;
  flex: 1 0 auto;
  flex-direction: column;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#modal.flow-page.withdrawal-modal #withdraw-form > #saved-destination-label {
  margin-top: 34px;
  margin-bottom: 14px;
  font-size: 20px;
  font-weight: 450;
  letter-spacing: -.2px;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger {
  min-height: 82px;
  padding: 0 22px;
  border: 2px solid #d7deea;
  border-radius: 18px;
  color: #344054;
  font-size: 23px;
  letter-spacing: -.3px;
}

#modal.flow-page.withdrawal-modal .custom-select-trigger svg {
  width: 22px;
  height: 22px;
}

#modal.flow-page.withdrawal-modal .saved-destination-summary {
  gap: 8px;
  margin: 28px 0 28px;
  padding: 25px 26px;
  border: 2px solid #e5e9f0;
  border-radius: 20px;
  background: #fbfcfe;
}

#modal.flow-page.withdrawal-modal .saved-destination-summary strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.3px;
}

#modal.flow-page.withdrawal-modal .saved-destination-summary span,
#modal.flow-page.withdrawal-modal .saved-destination-summary small {
  font-size: 19px;
  line-height: 1.45;
}

#modal.flow-page.withdrawal-modal #withdraw-form > label[for="amount"] {
  margin: 8px 0 14px;
  font-size: 20px;
  font-weight: 450;
}

#modal.flow-page.withdrawal-modal #withdraw-form > input#amount {
  min-height: 88px;
  padding: 0 22px;
  border: 2px solid #e5e7eb;
  border-radius: 20px;
  background: #fff;
  color: #344054;
  font-size: 28px;
}

#modal.flow-page.withdrawal-modal #withdraw-form > input#amount::placeholder {
  color: #667085 !important;
}

#modal.flow-page.withdrawal-modal #withdraw-form > .field-hint {
  max-width: 34ch;
  margin: 24px 0 0;
  color: #667085;
  font-size: 19px;
  line-height: 1.65;
}

#modal.flow-page.withdrawal-modal form .primary {
  position: static;
  width: 100%;
  min-height: 92px;
  margin: 64px 0 0;
  padding: 0 18px;
  border-radius: 20px !important;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 8px 18px rgb(0 0 0 / 16%) !important;
}

#modal.flow-page.withdrawal-modal #withdraw-form .primary:disabled {
  border: 1px solid #d9d9d9 !important;
  background: #f0f0f0 !important;
  background-image: none !important;
  box-shadow: none !important;
  color: #667085 !important;
  cursor: not-allowed;
}

#modal.flow-page.withdrawal-modal .withdraw-approval {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: auto 0 8px;
  padding-top: 110px;
  color: #20242a;
  font-size: 12px;
  letter-spacing: .1px;
}

#modal.flow-page.withdrawal-modal .withdraw-approval svg {
  width: 20px;
  height: 20px;
  color: #22b957;
  fill: #22b957;
  stroke: #fff;
  stroke-width: 1.8;
}

#modal.flow-page.withdrawal-modal .modal-head {
  flex-direction: row;
  justify-content: flex-start;
}

#modal.flow-page.withdrawal-modal .modal-head::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  content: attr(data-title);
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

#modal.flow-page.withdrawal-modal .modal-head .icon-btn {
  position: relative;
  z-index: 1;
  margin: 0;
}

#modal.flow-page.withdrawal-modal #modal-content {
  background: var(--color-background-secondary);
}

#modal.flow-page.withdrawal-modal #modal-content,
#modal.flow-page.withdrawal-modal #modal-content > p,
#modal.flow-page.withdrawal-modal #withdraw-form,
#modal.flow-page.withdrawal-modal #withdraw-form .field-hint,
#modal.flow-page.withdrawal-modal #withdraw-form label,
#modal.flow-page.withdrawal-modal #withdraw-form input,
#modal.flow-page.withdrawal-modal #withdraw-form select {
  font-weight: 400;
}

#modal.flow-page.withdrawal-modal #modal-content > p {
  margin: 4px auto 24px;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

#modal.flow-page.withdrawal-modal #withdraw-form label {
  margin: 18px 0 8px;
  color: var(--color-text-primary);
  font-size: 13px;
}

#modal.flow-page.withdrawal-modal #withdraw-form input,
#modal.flow-page.withdrawal-modal #withdraw-form select {
  min-height: 52px;
  border-radius: 14px;
  font-size: 15px;
}

#modal.flow-page.withdrawal-modal #withdraw-form .field-hint {
  margin-top: 14px;
  font-size: 12px;
}

#modal.flow-page.withdrawal-modal #withdraw-form .primary:not(:disabled) {
  color: #fff !important;
  font-weight: 650;
}

#modal.flow-page.withdrawal-modal #withdraw-form .primary:disabled {
  font-weight: 600;
}

@media (max-width: 650px) {
  input:not(.amount-input),
  textarea,
  select {
    font-size: 16px !important;
  }

  #modal.flow-page.withdrawal-modal .modal-head::after {
    font-size: 15px;
    font-weight: 500;
  }

  #modal.flow-page.withdrawal-modal #modal-content {
    padding: 24px 35px calc(20px + env(safe-area-inset-bottom));
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > #saved-destination-label {
    margin-top: 70px;
    font-size: 20px;
  }

  #modal.flow-page.withdrawal-modal .custom-select-trigger {
    min-height: 82px;
    font-size: 23px;
  }

  #modal.flow-page.withdrawal-modal .saved-destination-summary {
    margin-top: 28px;
    padding: 25px 26px;
  }

  #modal.flow-page.withdrawal-modal .saved-destination-summary strong {
    font-size: 24px;
  }

  #modal.flow-page.withdrawal-modal .saved-destination-summary span,
  #modal.flow-page.withdrawal-modal .saved-destination-summary small {
    font-size: 19px;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > label[for="amount"] {
    margin-top: 8px;
    font-size: 20px;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > input#amount {
    min-height: 88px;
    font-size: 28px;
  }

  #modal.flow-page.withdrawal-modal #withdraw-form > .field-hint {
    font-size: 19px;
  }

  #modal.flow-page.withdrawal-modal form .primary {
    min-height: 92px;
    margin-top: 64px;
    font-size: 24px;
  }

  #modal.flow-page.withdrawal-modal .withdraw-approval {
    padding-top: 110px;
  }
}

#modal.flow-page.transaction-details-modal .modal-head {
  flex-direction: row !important;
  justify-content: flex-start;
}

#modal.flow-page.transaction-details-modal .modal-head::after {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  content: "Transaction details";
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  white-space: nowrap;
}

#modal.flow-page.transaction-details-modal .modal-head .icon-btn {
  position: relative;
  z-index: 1;
  margin: 0;
}

#modal.flow-page.transaction-details-modal #modal-content {
  display: grid;
  box-sizing: border-box;
  align-content: center;
  justify-items: center;
  padding: clamp(22px, 5vh, 48px) clamp(18px, 4vw, 42px) calc(24px + env(safe-area-inset-bottom));
  background: var(--color-background-secondary);
}

#modal.flow-page.transaction-details-modal .transaction-receipt {
  width: min(100%, 680px);
  max-width: 680px;
  margin: auto;
  padding: clamp(28px, 5vw, 48px);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 14px 38px rgb(16 24 40 / 6%);
}

#modal.flow-page.transaction-details-modal .transaction-receipt-kicker,
#modal.flow-page.transaction-details-modal .transaction-receipt h2,
#modal.flow-page.transaction-details-modal .transaction-receipt-amount,
#modal.flow-page.transaction-details-modal .transaction-receipt-caption {
  text-align: center;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-kicker {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 1.1px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt h2 {
  font-size: clamp(23px, 4vw, 30px);
  font-weight: 600;
  letter-spacing: -.5px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-amount {
  margin-top: 18px;
  font-size: clamp(34px, 6vw, 46px);
  font-weight: 650;
  letter-spacing: -.8px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-caption {
  margin-bottom: 26px;
  font-size: 14px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
  grid-template-columns: minmax(100px, .8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 17px 0;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details span {
  font-size: 13px;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details strong {
  font-size: 13px;
  font-weight: 550;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-details code {
  font-size: 11px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

#modal.flow-page.transaction-details-modal .transaction-receipt-note {
  margin-top: 20px;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 650px) {
  #modal.flow-page.transaction-details-modal .modal-head {
    flex-direction: row !important;
    padding-right: 16px;
    padding-left: 16px;
  }

  #modal.flow-page.transaction-details-modal .modal-head::after {
    font-size: 15px;
  }

  #modal.flow-page.transaction-details-modal #modal-content {
    padding: 22px 16px calc(22px + env(safe-area-inset-bottom));
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt {
    width: 100%;
    padding: 28px 21px;
    border-radius: 24px;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details > div {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    padding: 15px 0;
  }

  #modal.flow-page.transaction-details-modal .transaction-receipt-details span,
  #modal.flow-page.transaction-details-modal .transaction-receipt-details strong {
    line-height: 1.5;
  }
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen {
  left: 50%;
  width: min(100vw, 430px);
  max-width: 430px;
  transform: translateX(-50%);
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .modal-head {
  min-height: 58px;
  padding: 8px 18px;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .modal-head::after {
  font-size: 15px;
  font-weight: 600;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #modal-content {
  min-height: 0;
  padding: 8px 20px 16px !important;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #fff;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form {
  width: 100%;
  max-width: none;
  min-height: 100%;
  flex: 1 0 auto;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > * {
  order: 0;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > #saved-destination-label,
#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > label[for="amount"] {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px !important;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > input#amount {
  width: 100%;
  min-height: 50px !important;
  margin: 80px 0 12px;
  padding: 0 10px !important;
  border: 0;
  border-bottom: 1px solid #e8e8eb;
  border-radius: 0;
  background: #fff;
  color: #202124;
  font-size: 28px !important;
  font-weight: 500;
  text-align: center;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > input#amount::placeholder {
  color: #b7b7bb !important;
  opacity: 1;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #saved-destination {
  margin: 0;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #saved-destination {
  display: none !important;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .custom-select-trigger {
  min-height: 30px !important;
  justify-content: center;
  gap: 5px;
  padding: 0 !important;
  border: 0;
  background: transparent;
  color: #000;
  font-size: 13px !important;
  font-weight: 450;
  text-align: center;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .custom-select-trigger:hover,
#modal.flow-page.withdrawal-modal.bank-transfer-screen .custom-select-trigger[aria-expanded="true"] {
  border-color: transparent;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .custom-select-trigger svg {
  width: 15px;
  height: 15px;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .custom-select-menu {
  top: calc(100% + 5px);
  text-align: left;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #destination-fields:not([hidden]) {
  margin-top: 12px;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > .primary {
  position: static;
  width: 100%;
  min-height: 44px !important;
  margin: 19px 0 0 !important;
  padding: 0 14px;
  border: 0;
  border-radius: 11px !important;
  background: #171717 !important;
  box-shadow: none !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 650;
  letter-spacing: 0;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form .primary:disabled {
  border: 0 !important;
  background: #ededee !important;
  box-shadow: none !important;
  color: #a7a7aa !important;
  opacity: 1;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > .field-hint {
  max-width: none;
  margin: 28px 0 0 !important;
  color: #99999e;
  font-size: 10px !important;
  font-weight: 400;
  line-height: 1.45;
  text-align: center;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > .error:empty {
  display: none;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-showcase {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
  padding-top: 42px;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-banner {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 1;
  border-radius: 19px;
  object-fit: contain;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-art {
  display: grid;
  width: 100%;
  height: 140px;
  place-items: center;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-illustration {
  display: block;
  width: auto;
  height: 140px;
  max-width: min(100%, 340px);
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .withdraw-approval {
  gap: 6px;
  margin: 0;
  padding: 0 0 2px;
  color: #222;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .25px;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen .withdraw-approval svg {
  width: 17px;
  height: 17px;
}

@media (max-width: 650px) {
  #modal.flow-page.withdrawal-modal.bank-transfer-screen #modal-content {
    padding-right: 20px !important;
    padding-bottom: 16px !important;
    padding-left: 20px !important;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-showcase {
    margin-top: 24px;
    padding-top: 0;
    padding-bottom: 24px;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry .bank-transfer-showcase {
    margin-top: 0;
    padding-bottom: 0;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry #destination-fields label {
    margin: 10px 0 6px;
    font-size: 12px;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry #destination-fields input {
    min-height: 46px;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #destination-fields {
    margin-top: 16px;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #bank-details-continue {
    margin-top: 12px !important;
  }
}

@media (max-height: 700px) {
  #modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > input#amount {
    margin-top: 34px;
  }

  @media (max-height: 600px) and (max-width: 650px) {
    #modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-showcase {
      margin-top: 20px;
      padding-bottom: 18px;
    }
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-showcase {
    padding-top: 0;
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-art {
    height: clamp(80px, 15vh, 100px);
  }

  #modal.flow-page.withdrawal-modal.bank-transfer-screen .bank-transfer-illustration {
    height: clamp(80px, 15vh, 100px);
  }
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #amount,
#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > .field-hint,
#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry .bank-transfer-banner,
#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry .bank-transfer-art,
#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #withdraw-submit,
#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form > [hidden] {
  display: none !important;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #destination-fields {
  margin-top: 26px;
}

#modal.flow-page.withdrawal-modal.bank-transfer-screen #withdraw-form.bank-details-entry > #bank-details-continue {
  margin-top: 22px !important;
}

html:has(body.flow-open) {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.flow-open {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.withdrawal-confirmation {
  position: fixed;
  z-index: 20;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgb(15 23 42 / 52%);
  backdrop-filter: blur(5px);
}

.withdrawal-confirmation-card {
  width: min(100%, 360px);
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 70px rgb(15 23 42 / 28%);
  text-align: center;
}

.withdrawal-confirmation-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: #f1efff;
  color: #6242d8;
}

.withdrawal-confirmation-card h2 {
  margin: 0 0 9px;
  color: var(--color-text-primary);
  font-size: 19px;
}

.withdrawal-confirmation-card p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.withdrawal-confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
}

.withdrawal-confirmation-actions button {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 11px;
  font-size: 14px;
  font-weight: 600;
}

.withdrawal-confirmation-cancel {
  background: #f8f9fb;
  color: var(--color-text-primary);
}

.withdrawal-confirmation-submit {
  border-color: #171717 !important;
  background: #171717;
  color: #fff;
}

.withdrawal-confirmation-card :focus-visible {
  outline: 3px solid #b4a9ff;
  outline-offset: 3px;
}

body[data-page="transactions"] #page > .panel > .section-top > h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.activity-header {
  display: none;
}

@media (max-width: 650px) {
  body[data-page="transactions"] .shell > header,
  body[data-page="transactions"] .page-heading,
  body[data-page="transactions"] main > footer {
    display: none !important;
  }

  body[data-page="transactions"] .shell > main {
    padding: 0 0 calc(76px + env(safe-area-inset-bottom)) !important;
  }

  body[data-page="transactions"] #page,
  body[data-page="transactions"] #page > .panel {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body[data-page="transactions"] .activity-header {
    position: relative;
    display: flex;
    height: clamp(62px, 8vh, 82px);
    align-items: center;
    justify-content: space-between;
    padding: env(safe-area-inset-top) 22px 0;
    background: #fff;
  }

  .activity-header h1 {
    position: absolute;
    left: 50%;
    margin: 0;
    color: #111827;
    font-family: Inter, "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0;
    transform: translateX(-50%);
  }

  .activity-header button {
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    padding: 0;
    background: transparent;
    color: #111827;
  }

  .activity-back i {
    transform: rotate(180deg);
  }

  .activity-back svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.6;
  }

  .activity-search-toggle svg {
    width: 34px;
    height: 34px;
    stroke: #111;
    stroke-width: 1.2;
  }

  body[data-page="transactions"] .section-top {
    display: none;
  }

  body[data-page="transactions"] .toolbar {
    display: none;
    grid-template-columns: minmax(0, 1fr) minmax(120px, 35%);
    gap: 10px;
    margin: 0;
    padding: 12px 20px 0;
  }

  body[data-page="transactions"] .activity-search-open .toolbar {
    display: grid;
  }

  body[data-page="transactions"] .toolbar input,
  body[data-page="transactions"] .toolbar select {
    min-height: 44px;
    border-radius: 12px;
    font-size: 14px;
  }

  body[data-page="transactions"] #tx-list {
    padding: 16px 22px 0;
  }

  body[data-page="transactions"] .activity-search-open #tx-list {
    padding-top: 22px;
  }

  body[data-page="transactions"] .tx-pagination {
    padding: 16px 22px 24px;
  }
}
