.deposit-method-modal {
  position: relative;
  background: #16141f;
  border-radius: 16px;
  padding: 24px 22px 18px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.deposit-method-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
}

.deposit-method-header {
  margin-bottom: 20px;
  padding-right: 36px;
}

.deposit-method-title {
  font-size: 22px;
  font-weight: 700;
  color: #e5e7eb;
  margin: 0 0 4px 0;
}

.deposit-method-subtitle {
  font-size: 14px;
  color: #9ca3af;
  margin: 0;
}

.deposit-method-min {
  font-size: 13px;
  font-weight: 700;
  color: #14b8a6;
  margin: 10px 0 0 0;
}

html[data-cnh-theme="light"] .deposit-method-min {
  color: #0d9488;
}

.deposit-method-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.deposit-method-card {
  width: 100%;
  padding: 14px 14px;
  text-align: left;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1c1a24;
  color: #e5e7eb;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

#depositMethodModal.is-open {
  z-index: 99999 !important;
  pointer-events: auto !important;
}

#depositMethodModal .deposit-method-modal {
  position: relative;
  z-index: 1;
  pointer-events: auto;
  max-height: 90vh;
  overflow-y: auto;
}

.method-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.method-logo {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-logo svg {
  display: block;
  width: 24px;
  height: 24px;
}

.method-logo--mpesa {
  background: rgba(20, 184, 166, 0.16);
  color: #14b8a6;
}

.method-logo--usdt {
  background: rgba(38, 161, 123, 0.18);
}

.method-logo--usdt svg {
  width: 28px;
  height: 28px;
}

.method-logo--binance {
  background: rgba(243, 186, 47, 0.18);
}

.method-logo--binance svg {
  width: 28px;
  height: 28px;
}

.method-logo--worldcoin {
  background: rgba(255, 255, 255, 0.08);
}

.method-logo--worldcoin svg {
  width: 28px;
  height: 28px;
}

.method-logo-svg {
  display: block;
}

.method-logo-mpesa,
.method-logo-bank,
.method-logo-paypal {
  width: 24px;
  height: auto;
}

.method-card-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: #6b7280;
}

.method-card-arrow svg {
  width: 18px;
  height: 18px;
  display: block;
}

.method-text-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
}

.deposit-method-card .method-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.deposit-method-card .method-subtitle {
  font-size: 12px;
  color: #9ca3af;
}

.deposit-method-card.mpesa {
  border-color: #14b8a6;
}

.deposit-method-card.usdt,
.deposit-method-card.binance,
.deposit-method-card.worldcoin,
.deposit-method-card.bank,
.deposit-method-card.paypal {
  border-color: rgba(255, 255, 255, 0.08);
}

.deposit-method-card:hover {
  transform: translateY(-1px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.55);
}

.deposit-method-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
  padding-top: 4px;
}

.deposit-method-foot-item {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: #9ca3af;
}

.deposit-method-foot-item::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: #14b8a6;
  vertical-align: middle;
}

/* Mobile: same centered chooser card as desktop (do not stretch to full width) */
@media (max-width: 900px) {
  #depositMethodModal.modal-overlay.is-open {
    z-index: 99999 !important;
    position: fixed !important;
    inset: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px 16px max(20px, env(safe-area-inset-bottom, 0px)) !important;
    pointer-events: auto !important;
    background: rgba(0, 0, 0, 0.72) !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    box-sizing: border-box !important;
  }

  #depositMethodModal .deposit-method-modal,
  #depositMethodModal.modal-overlay.is-open .deposit-method-modal.modal-content,
  #depositMethodModal.modal-overlay.is-open .deposit-method-modal {
    width: 100% !important;
    max-width: 400px !important;
    margin: 0 auto !important;
    padding: 22px 18px 16px !important;
    background: #16141f !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 16px !important;
    max-height: min(90vh, 720px) !important;
    overflow-y: auto !important;
  }

  #depositMethodModal .deposit-method-title {
    font-size: 20px;
  }

  #depositMethodModal .deposit-method-card {
    padding: 14px 12px;
  }

  #depositMethodModal .deposit-method-foot {
    gap: 4px;
  }

  #depositMethodModal .deposit-method-foot-item {
    font-size: 11px;
  }
}