/* Withdraw (WithdrawView.swift, from the site's withdraw.css): balance strip, numbered cards, dashed summary. */

.wd-content {
  max-width: 620px;
  margin: 0 auto;
  padding: 30px 22px 56px;
  font-size: 15px;
  color: var(--wd-ink);
}
.wd-body,
.wd-receipt {
  display: flex;
  flex-direction: column;
}

/* Add your full name */
.wd-warning {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.45;
  background: var(--wd-amber-soft);
}
.wd-warning-title {
  font-weight: 600;
  color: var(--wd-amber);
}

/* Available balance */
.wd-balance {
  padding: 17px 18px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  /* The same card as Activity's summary: dark green with a purple glow top right and mint bottom left */
  background:
    radial-gradient(circle at calc(100% + 0px) -10px, var(--act-glow), transparent 130px),
    radial-gradient(circle at -20px calc(100% + 30px), var(--act-mint), transparent 120px),
    var(--act-hero);
  box-shadow: 0 10px 36px var(--act-hero-shadow);
}
.wd-balance-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.13);
}
.wd-balance-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wd-balance-label {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.82;
}
.wd-balance-value {
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Numbered cards */
.wd-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--wd-line);
  box-shadow: 0 5px 18px var(--wd-card-shadow);
}
.wd-card-head {
  padding-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wd-card-title {
  font-family: 'Outfit', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.wd-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--wd-brand);
  background: var(--wd-brand-soft);
}

/* Amount */
.wd-amount-box {
  padding: 6px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--wd-surface2);
  border: 1.5px solid var(--wd-field-line);
  transition: border-color 0.15s;
}
.wd-amount-box:focus-within {
  border-color: var(--wd-brand);
}
.wd-amount-box.has-error {
  border-color: var(--wd-red);
}
.wd-naira {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--wd-muted);
}
.wd-amount-input {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  border: 0;
  outline: none;
  background: transparent;
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.6px;
  font-variant-numeric: tabular-nums;
  color: var(--wd-ink);
}
.wd-amount-input::placeholder {
  color: color-mix(in srgb, var(--wd-muted) 55%, transparent);
}
.wd-amount-hint {
  padding: 9px 2px 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--wd-muted);
}
.wd-amount-hint.is-error {
  font-weight: 600;
  color: var(--wd-red);
}
.wd-chips {
  padding-top: 13px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.wd-chip {
  min-width: 0;
  min-height: 36px;
  padding: 9px 4px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--wd-ink);
  background: var(--surface);
  border: 1px solid var(--wd-line);
}
.wd-chip.is-active {
  color: var(--wd-brand);
  background: var(--wd-brand-soft);
  border-color: var(--wd-brand);
}
.wd-chip:disabled {
  opacity: 0.4;
  cursor: default;
}

/* Send to */
.wd-accounts {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.wd-account {
  width: 100%;
  padding: 12px 14px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--wd-ink);
  background: var(--surface);
  border: 1.5px solid var(--wd-line);
  transition: border-color 0.15s, background-color 0.15s;
}
.wd-account.is-selected {
  background: color-mix(in srgb, var(--wd-brand-soft) 60%, transparent);
  border-color: var(--wd-brand);
}
.wd-account:disabled {
  opacity: 0.6;
  cursor: default;
}
.wd-account-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wd-account-bank {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.wd-account-name {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-default {
  flex: none;
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: var(--wd-brand);
  background: var(--wd-brand-soft);
}
.wd-account-meta {
  font-size: 12px;
  color: var(--wd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-account-warning {
  font-size: 12px;
  font-weight: 600;
  color: var(--wd-red);
}
.wd-radio {
  width: 20px;
  height: 20px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--wd-field-line);
  background: var(--surface);
}
.wd-account.is-selected .wd-radio {
  border: 6px solid var(--wd-brand);
}
.wd-link {
  align-self: flex-start;
  min-height: 32px;
  font-size: 13px;
  font-weight: 700;
  color: var(--wd-brand);
}
.wd-accounts .wd-link {
  margin-top: 3px;
}
.wd-no-account {
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed var(--wd-field-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 13px;
}
.wd-no-account-title {
  font-weight: 700;
}
.wd-no-account-text {
  color: var(--wd-muted);
}

/* Summary */
.wd-summary {
  margin-top: 14px;
  padding: 6px 18px;
  border-radius: 18px;
  background: var(--wd-surface2);
  border: 1px dashed var(--wd-field-line);
}
.wd-summary-row {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: var(--wd-muted);
}
.wd-summary-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--wd-ink);
}
.wd-summary-value.is-green,
.wd-details dd.is-green {
  color: var(--wd-green);
}
.wd-summary-total {
  padding: 10px 0;
  border-top: 1px solid var(--wd-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}
.wd-summary-total-value {
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Buttons */
.wd-primary,
.wd-ghost {
  min-height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
}
.wd-primary {
  color: #fff;
  /* The app's brand-blue gradient (as the balance card's Withdraw), with a soft blue glow. */
  background: linear-gradient(90deg, #1430aa 0%, #1d5fe8 100%);
  box-shadow: 0 6px 16px var(--cta-glow);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.15s;
}
.wd-primary:active:not(:disabled) {
  transform: scale(0.98);
  transition-duration: 0.12s;
}
.wd-primary:disabled {
  opacity: 0.45;
  box-shadow: none;
  cursor: default;
}
@media (prefers-reduced-motion: reduce) {
  .wd-primary,
  .wd-primary:active:not(:disabled) {
    transition: none;
    transform: none;
  }
}
.wd-primary.is-small {
  min-height: 44px;
  margin-top: 8px;
  padding: 0 18px;
}
.wd-body > .wd-primary {
  margin-top: 18px;
}
.wd-ghost {
  color: var(--wd-ink);
  border: 1px solid var(--wd-line);
}
.wd-ghost:active {
  background: var(--wd-surface2);
}
.wd-note {
  padding: 13px 4px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--wd-muted);
}
.wd-note .icon {
  margin-top: 1px;
  font-size: 13px;
  color: var(--wd-green);
}

/* Recent withdrawals */
.wd-recent {
  padding-top: 30px;
}
.wd-recent-head {
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wd-recent-title {
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.wd-recent-row {
  width: 100%;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  color: var(--wd-ink);
  border-bottom: 1px solid var(--wd-line);
}
.wd-recent-icon {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}
.wd-recent-icon.is-pending,
.wd-badge.is-pending {
  color: var(--wd-amber);
  background: var(--wd-amber-soft);
}
.wd-recent-icon.is-paid,
.wd-badge.is-paid {
  color: var(--wd-green);
  background: var(--wd-green-soft);
}
.wd-recent-icon.is-declined,
.wd-badge.is-declined {
  color: var(--wd-red);
  background: var(--wd-red-soft);
}
.wd-recent-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.wd-recent-bank {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-recent-meta {
  font-size: 12px;
  color: var(--wd-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wd-recent-end {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.wd-recent-amount {
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.wd-badge {
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
}
.wd-empty {
  padding: 22px;
  border-radius: 16px;
  border: 1px dashed var(--wd-field-line);
  text-align: center;
  font-size: 13px;
  color: var(--wd-muted);
}

/* Details list (confirm sheet and receipt) */
.wd-details {
  padding: 4px 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--wd-line);
}
.wd-details-row {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}
.wd-details-row + .wd-details-row {
  border-top: 1px solid var(--wd-line);
}
.wd-details dt {
  flex: none;
  color: var(--wd-muted);
}
.wd-details dd {
  min-width: 0;
  font-weight: 600;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Confirm sheet */
.wd-sheet {
  padding: 0 20px 22px;
  display: flex;
  flex-direction: column;
  text-align: center;
  color: var(--wd-ink);
}
.wd-sheet-title {
  padding-top: 24px;
  font-family: 'Outfit', sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
}
.wd-sheet-amount {
  padding: 8px 0 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.8px;
}
.wd-password-label {
  padding: 13px 0 7px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--wd-muted);
}
.wd-password {
  height: 48px;
  padding: 0 13px;
  border-radius: 12px;
  border: 1px solid var(--wd-field-line);
  outline: none;
  font: inherit;
  font-size: 15px;
  color: var(--wd-ink);
  background: var(--surface);
}
.wd-password:focus {
  border-color: var(--wd-brand);
}
.wd-password.has-error {
  border-color: var(--wd-red);
}
.wd-sheet-error {
  padding-top: 7px;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-red);
}
.wd-sheet-actions {
  padding-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
}

/* Success receipt */
.wd-receipt {
  align-items: stretch;
  padding-top: 12px;
  text-align: center;
}
.wd-check {
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--wd-green);
  background: var(--wd-green-soft);
  animation: wd-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}
@keyframes wd-pop {
  from {
    opacity: 0;
    transform: scale(0.4);
  }
}
.wd-receipt-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--wd-muted);
}
.wd-receipt-amount {
  padding: 6px 0 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1px;
}
.wd-receipt-text {
  max-width: 360px;
  margin: 0 auto 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--wd-muted);
}
.wd-timeline {
  margin-bottom: 18px;
  padding: 16px 18px;
  border-radius: 16px;
  list-style: none;
  text-align: left;
  border: 1px solid var(--wd-line);
}
.wd-step-item {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 16px;
}
.wd-step-item:last-child {
  padding-bottom: 0;
}
/* The line down to the next step: green once this step is done */
.wd-step-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 21px;
  bottom: 1px;
  left: 8px;
  width: 2px;
  background: var(--wd-line);
}
.wd-step-item.is-done:not(:last-child)::after {
  background: var(--wd-green);
}
.wd-dot {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  border-radius: 50%;
  border: 2px solid var(--wd-field-line);
  background: var(--surface);
}
.is-done > .wd-dot {
  border-color: var(--wd-green);
  background: radial-gradient(circle, var(--wd-green) 0 4px, var(--surface) 4.5px);
}
.is-current > .wd-dot {
  border-color: var(--wd-amber);
  box-shadow: 0 0 0 4px var(--wd-amber-soft);
}
.is-failed > .wd-dot {
  border-color: var(--wd-red);
  background: var(--wd-red);
}
.wd-step-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wd-step-title {
  font-size: 14px;
  font-weight: 700;
}
.wd-step-detail {
  font-size: 12px;
  color: var(--wd-muted);
}
.wd-receipt-actions {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
